-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ifshort stmt for err #3131
Merged
johanbrandhorst
merged 1 commit into
grpc-ecosystem:main
from
sashamelentyev:ifshortstmt
Jan 17, 2023
Merged
Use ifshort stmt for err #3131
johanbrandhorst
merged 1 commit into
grpc-ecosystem:main
from
sashamelentyev:ifshortstmt
Jan 17, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Sasha Melentyev <[email protected]>
johanbrandhorst
approved these changes
Jan 17, 2023
another-rex
referenced
this pull request
in google/osv.dev
Mar 6, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/grpc-ecosystem/grpc-gateway/v2](https://togithub.com/grpc-ecosystem/grpc-gateway) | require | patch | `v2.15.0` -> `v2.15.2` | | [google.golang.org/grpc/cmd/protoc-gen-go-grpc](https://togithub.com/grpc/grpc-go) | require | minor | `v1.2.0` -> `v1.3.0` | --- ### Release Notes <details> <summary>grpc-ecosystem/grpc-gateway</summary> ### [`v2.15.2`](https://togithub.com/grpc-ecosystem/grpc-gateway/releases/tag/v2.15.2) [Compare Source](https://togithub.com/grpc-ecosystem/grpc-gateway/compare/v2.15.1...v2.15.2) #### What's Changed - Switch the use of glog to grpclog. by [@​jmuk](https://togithub.com/jmuk) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3205](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3205) - fix: remove `push_bsr_plugins` Github Action job by [@​gunturaf](https://togithub.com/gunturaf) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3203](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3203) - Add correct comment, remove redundant vars and error, use short form by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3206](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3206) #### New Contributors - [@​jmuk](https://togithub.com/jmuk) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3205](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3205) - [@​gunturaf](https://togithub.com/gunturaf) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3203](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3203) **Full Changelog**: grpc-ecosystem/grpc-gateway@v2.15.1...v2.15.2 ### [`v2.15.1`](https://togithub.com/grpc-ecosystem/grpc-gateway/releases/tag/v2.15.1) [Compare Source](https://togithub.com/grpc-ecosystem/grpc-gateway/compare/v2.15.0...v2.15.1) #### What's Changed - Clean up use_allof_for_refs flag option by [@​warrenb95](https://togithub.com/warrenb95) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3092](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3092) - fix([#​3049](https://togithub.com/grpc-ecosystem/grpc-gateway/issues/3049)):add items type for array by [@​li31727](https://togithub.com/li31727) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3090](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3090) - fix: JSON examples in YAML output \[[#​3095](https://togithub.com/grpc-ecosystem/grpc-gateway/issues/3095)] by [@​hedhyw](https://togithub.com/hedhyw) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3106](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3106) - feat(3102):update DefaultHeaderMatcher function comment docs by [@​li31727](https://togithub.com/li31727) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3114](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3114) - Rename root BUILD to BUILD.bazel for consistency by [@​rsepassi](https://togithub.com/rsepassi) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3117](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3117) - Add `format` in path params by [@​antgamdia](https://togithub.com/antgamdia) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3089](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3089) - Change verb by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3129](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3129) - Remove redundant err and use %w verb for err by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3130](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3130) - Use ifshort stmt for err by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3131](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3131) - Cleanup by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3137](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3137) - Change '%v' with %q verb and small cleanup by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3139](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3139) - fix: Partial resource update, no longer generate updateMask field by [@​csh995426531](https://togithub.com/csh995426531) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3093](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3093) - Add go1.20 to ci matrix by [@​sashamelentyev](https://togithub.com/sashamelentyev) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3176](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3176) - Update README.md by [@​paulburlumi](https://togithub.com/paulburlumi) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3184](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3184) - gateway: Dial -> DialContext by [@​torkelrogstad](https://togithub.com/torkelrogstad) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3190](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3190) - Buf version bump by [@​torkelrogstad](https://togithub.com/torkelrogstad) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3189](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3189) - Fix bug with non-ASCII HTTP headers by [@​steinarvk-oda](https://togithub.com/steinarvk-oda) in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3197](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3197) #### New Contributors - [@​warrenb95](https://togithub.com/warrenb95) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3092](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3092) - [@​li31727](https://togithub.com/li31727) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3090](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3090) - [@​rsepassi](https://togithub.com/rsepassi) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3117](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3117) - [@​antgamdia](https://togithub.com/antgamdia) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3089](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3089) - [@​csh995426531](https://togithub.com/csh995426531) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3093](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3093) - [@​paulburlumi](https://togithub.com/paulburlumi) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3184](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3184) - [@​steinarvk-oda](https://togithub.com/steinarvk-oda) made their first contribution in [https://github.com/grpc-ecosystem/grpc-gateway/pull/3197](https://togithub.com/grpc-ecosystem/grpc-gateway/pull/3197) **Full Changelog**: grpc-ecosystem/grpc-gateway@v2.15.0...v2.15.1 </details> <details> <summary>grpc/grpc-go</summary> ### [`v1.3.0`](https://togithub.com/grpc/grpc-go/releases/tag/v1.3.0): Release 1.3.0 [Compare Source](https://togithub.com/grpc/grpc-go/compare/v1.2.0...v1.3.0) ### API change - Never encode binary metadata within the metadata map ([#​1188](https://togithub.com/grpc/grpc-go/issues/1188)) - Update grpclb proto and move grpclb into package grpc ([#​1186](https://togithub.com/grpc/grpc-go/issues/1186)) - Change status package to deal with concrete types instead of interfaces ([#​1171](https://togithub.com/grpc/grpc-go/issues/1171)) - Behavior change: do not strip out gRPC user-agent ([#​1158](https://togithub.com/grpc/grpc-go/issues/1158)) - Separate incoming and outgoing metadata in context ([#​1157](https://togithub.com/grpc/grpc-go/issues/1157)) - Add status package for reporting gRPC status and errors ([#​1156](https://togithub.com/grpc/grpc-go/issues/1156)) - remove support for go1.5 ([#​1132](https://togithub.com/grpc/grpc-go/issues/1132)) ### New Feature - Client load report for grpclb. ([#​1200](https://togithub.com/grpc/grpc-go/issues/1200)) - Client should update keepalive parameters upon receiving GoAway ([#​1169](https://togithub.com/grpc/grpc-go/issues/1169)) - Implementation for server enforcement of keepalive policy. ([#​1147](https://togithub.com/grpc/grpc-go/issues/1147)) - Add grpc.Version string and use it in the UA ([#​1144](https://togithub.com/grpc/grpc-go/issues/1144)) - Support max age([#​1119](https://togithub.com/grpc/grpc-go/issues/1119)) - Support proxy with dialer ([#​1098](https://togithub.com/grpc/grpc-go/issues/1098)) ### Behavior change - populate initReq target name and fix IP \[]byte type in grpclb ([#​1145](https://togithub.com/grpc/grpc-go/issues/1145)) - pick a random address if the current in use is deleted by resolver ([#​1135](https://togithub.com/grpc/grpc-go/issues/1135)) - :authority should include port number ([#​1123](https://togithub.com/grpc/grpc-go/issues/1123)) - Don't return an error from dial if the balancer returns no initial servers ([#​1112](https://togithub.com/grpc/grpc-go/issues/1112)) ### Bug fix - Fix nil pointer dereferences from status.FromProto(nil) ([#​1211](https://togithub.com/grpc/grpc-go/issues/1211)) - Use unpadded base64 encoding for binary metadata headers; handle padded or unpadded input ([#​1209](https://togithub.com/grpc/grpc-go/issues/1209)) - Use proto.Equal for equalities on Go proto messages ([#​1204](https://togithub.com/grpc/grpc-go/issues/1204)) - Move handling stats.End to clientStream.finish() ([#​1182](https://togithub.com/grpc/grpc-go/issues/1182)) - grpclb should connect to the second balancer ([#​1181](https://togithub.com/grpc/grpc-go/issues/1181)) - add error handling for InvalidArgument error from sendResponse() ([#​1173](https://togithub.com/grpc/grpc-go/issues/1173)) - transport: implement GoString on Stream ([#​1167](https://togithub.com/grpc/grpc-go/issues/1167)) - Bug fix([Issue#​1141](https://togithub.com/Issue/grpc-go/issues/1141)): Check if peer is nil before trying to derefer it. ([#​1143](https://togithub.com/grpc/grpc-go/issues/1143)) - Make sure all in-flight streams close when ClientConn.Close() is called. ([#​1136](https://togithub.com/grpc/grpc-go/issues/1136)) ### Performance - opt in to frame reuse on the framer to reduce garbage ([#​1096](https://togithub.com/grpc/grpc-go/issues/1096)) - use proto.Buffer API for protobuf codec and cache proto.Buffer structs ([#​1010](https://togithub.com/grpc/grpc-go/issues/1010)) ### Documentation - add document to ClientHandshake about returning temporary error ([#​1125](https://togithub.com/grpc/grpc-go/issues/1125)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 6am on wednesday" in timezone Australia/Sydney, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/google/osv.dev). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDYuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE0Ni4yIn0=-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.