prepare v4 #139
Reference in New Issue
Block a user
No description provided.
Delete Branch "devstigneev/micro-client-grpc:prepare_v4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull Request template
Please, go through these steps before clicking submit on this PR.
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if applicable).PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING
@@ -1,8 +1,22 @@
module go.unistack.org/micro-client-grpc/v3
v4
@@ -477,4 +468,2 @@
gcall := g.call
// wrap the call in reverse
for i := len(callOpts.CallWrappers); i > 0; i-- {
тут видимо хуки должны быть?
@@ -87,3 +85,1 @@
header["Grpc-Timeout"] = fmt.Sprintf("%dn", opts.RequestTimeout)
header["timeout"] = fmt.Sprintf("%dn", opts.RequestTimeout)
header["content-type"] = req.ContentType()
header["Grpc-Timeout"] = append(header["Grpc-Timeout"], fmt.Sprintf("%dn", opts.RequestTimeout))
в нижнем регистре
@@ -90,2 +87,3 @@
header["content-type"] = append(header["content-type"], req.ContentType())
md := gmetadata.New(header)
md := gmetadata.MD(metadata.Copy(header))
по идее типы одинаковые type MD map[string][]string
make а потом copy
36c52990ee
tob809959065