Skip to content

Commit

Permalink
Fix docstring for logging method (#341)
Browse files Browse the repository at this point in the history
`GRPCUnaryInterceptor` returns a [server-side
interceptor](https://pkg.go.dev/google.golang.org/[email protected]#UnaryServerInterceptor),
not client-side.
  • Loading branch information
pjh authored Aug 5, 2024
1 parent 45258f9 commit a42e351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func GRPCStreamingInterceptor(inLogger *slog.Logger, projectID string) grpc.Stre
}
}

// GRPCUnaryInterceptor returns a client-side gRPC unary interceptor that
// GRPCUnaryInterceptor returns a server-side gRPC unary interceptor that
// populates a logger with trace data in the context.
func GRPCUnaryInterceptor(inLogger *slog.Logger, projectID string) grpc.UnaryServerInterceptor {
return func(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error) {
Expand Down

0 comments on commit a42e351

Please sign in to comment.