Skip to content

Commit

Permalink
add PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
ysugimoto committed Jun 23, 2020
1 parent 3d15029 commit 0de7d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

#### Changed middleware fucntion type

No longer passing `context.Context` to first argument of `MiddlewareFunc`. this is because we need to pass custom metadata to gRPC.
If you are already using your onw middleware, plase change its interface. To access current context, get from `http.Request` by calling `r.Context()`.
On MiddlewareFunc, you need to return `context.Context` as first return value. this is because we need to make custom metadata to gRPC on middleware process.
If you are already using your onw middleware, plase change its interface. see https://github.com/ysugimoto/grpc-graphql-gateway/pull/10

## Motivation

Expand Down

0 comments on commit 0de7d0b

Please sign in to comment.