Skip to content

Commit

Permalink
Remove context as it isn't used
Browse files Browse the repository at this point in the history
  • Loading branch information
hspaay committed Dec 29, 2022
1 parent 0f0c80d commit bbae535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type Server struct {
callQueue *mpsc.Queue[*Call]

// Handler for custom behavior of unknown methods
HandleUnknownMethod func(ctx context.Context, m capnp.Method) *Method
HandleUnknownMethod func(m capnp.Method) *Method
}

// New returns a client hook that makes calls to a set of methods.
Expand Down Expand Up @@ -154,7 +154,7 @@ func (srv *Server) Send(ctx context.Context, s capnp.Send) (*capnp.Answer, capnp
func (srv *Server) Recv(ctx context.Context, r capnp.Recv) capnp.PipelineCaller {
mm := srv.methods.find(r.Method)
if mm == nil && srv.HandleUnknownMethod != nil {
mm = srv.HandleUnknownMethod(ctx, r.Method)
mm = srv.HandleUnknownMethod(r.Method)
}
if mm == nil {
r.Reject(capnp.Unimplemented("unimplemented"))
Expand Down

0 comments on commit bbae535

Please sign in to comment.