Skip to content

Conversation

@smira
Copy link
Member

@smira smira commented Jun 6, 2022

Updating gRPC library to 1.47 version makes it more picky about the
duplicate calls to SetHeader. Due to the nature of proxying, we might
try to set it multiple times, so simply ignore the error (doing best
effort to set it correctly, but with multiple upstreams setting headers
from all upstreams is not possible).

Signed-off-by: Andrey Smirnov [email protected]

Updating gRPC library to 1.47 version makes it more picky about the
duplicate calls to `SetHeader`. Due to the nature of proxying, we might
try to set it multiple times, so simply ignore the error (doing best
effort to set it correctly, but with multiple upstreams setting headers
from all upstreams is not possible).

Signed-off-by: Andrey Smirnov <[email protected]>
return fmt.Errorf("error setting headers from client %s: %w", src.backend, err)
}

dst.SetHeader(md) //nolint:errcheck // ignore errors, as we might try to set headers multiple times
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the actual change, everything else is just unrelated Kres updates/linting fixes ❗

@smira
Copy link
Member Author

smira commented Jun 6, 2022

/m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants