mirror of
https://github.com/gusaul/grpcox.git
synced 2024-12-26 10:50:11 +00:00
Compare commits
No commits in common. "6feae4127cdfe9e5496bd4d0eeeecdec43d464bf" and "f240d0494ec1945483a85387c77eecc609aebd5a" have entirely different histories.
6feae4127c
...
f240d0494e
|
@ -83,7 +83,6 @@ func (g *GrpCox) GetResource(ctx context.Context, target string, plainText, isRe
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// what is r.Headers used for?
|
|
||||||
r.headers = h
|
r.headers = h
|
||||||
|
|
||||||
g.activeConn.addConnection(target, r, g.maxLifeConn)
|
g.activeConn.addConnection(target, r, g.maxLifeConn)
|
||||||
|
|
|
@ -210,7 +210,7 @@ func (r *Resource) Invoke(ctx context.Context, metadata []string, symbol string,
|
||||||
}
|
}
|
||||||
h := grpcurl.NewDefaultEventHandler(&resultBuffer, r.descSource, formatter, false)
|
h := grpcurl.NewDefaultEventHandler(&resultBuffer, r.descSource, formatter, false)
|
||||||
|
|
||||||
var headers []string
|
var headers = r.headers
|
||||||
if len(metadata) != 0 {
|
if len(metadata) != 0 {
|
||||||
headers = metadata
|
headers = metadata
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user