From fd865ccec5db54dd13f6194477cfeb3c438d7649 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 6 Sep 2024 15:26:36 -0700 Subject: [PATCH] Make receiver names consistent. --- opts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opts.go b/opts.go index b1da3b3..9c32540 100644 --- a/opts.go +++ b/opts.go @@ -73,11 +73,11 @@ func (s *ServerOptions) startTime() time.Time { return s.StartTime } -func (o *ServerOptions) newContext() func() context.Context { - if o == nil || o.NewContext == nil { +func (s *ServerOptions) newContext() func() context.Context { + if s == nil || s.NewContext == nil { return context.Background } - return o.NewContext + return s.NewContext } func (s *ServerOptions) rpcLog() RPCLogger {