Skip to content

Commit

Permalink
Fix the incorrect parameter order (#339)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <imcusg@gmail.com>
  • Loading branch information
cuishuang authored Sep 26, 2024
1 parent a53bbd0 commit feea063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testing/cmd/testsvr/testsvr.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (s testSvr) Exchange(ctx context.Context, m *TestMessage) (*TestMessage, er
hdrs := metadata.MD{}
tlrs := metadata.MD{}
for k, v := range headers {
if strings.HasSuffix("-t", k) {
if strings.HasSuffix(k, "-t") {
tlrs[k] = v
} else {
hdrs[k] = v
Expand All @@ -91,7 +91,7 @@ func (s testSvr) UploadMany(stream KitchenSink_UploadManyServer) error {
hdrs := metadata.MD{}
tlrs := metadata.MD{}
for k, v := range headers {
if strings.HasSuffix("-t", k) {
if strings.HasSuffix(k, "-t") {
tlrs[k] = v
} else {
hdrs[k] = v
Expand Down Expand Up @@ -126,7 +126,7 @@ func (s testSvr) DownloadMany(m *TestMessage, stream KitchenSink_DownloadManySer
hdrs := metadata.MD{}
tlrs := metadata.MD{}
for k, v := range headers {
if strings.HasSuffix("-t", k) {
if strings.HasSuffix(k, "-t") {
tlrs[k] = v
} else {
hdrs[k] = v
Expand All @@ -151,7 +151,7 @@ func (s testSvr) DoManyThings(stream KitchenSink_DoManyThingsServer) error {
hdrs := metadata.MD{}
tlrs := metadata.MD{}
for k, v := range headers {
if strings.HasSuffix("-t", k) {
if strings.HasSuffix(k, "-t") {
tlrs[k] = v
} else {
hdrs[k] = v
Expand Down

0 comments on commit feea063

Please sign in to comment.