From 99807277977d8b6dc13d98928696542a07b1dd83 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Fri, 13 Apr 2018 09:22:44 +0200 Subject: [PATCH] rpc: go fmt -s --- rpc/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/server.go b/rpc/server.go index 88ad080a8f..0f29035edb 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -140,7 +140,7 @@ func (s *Server) serveRequest(codec ServerCodec, singleShot bool, options CodecO s.codecsMu.Unlock() }() -// ctx, cancel := context.WithCancel(context.Background()) + // ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(ctx) defer cancel() @@ -216,7 +216,7 @@ func (s *Server) serveRequest(codec ServerCodec, singleShot bool, options CodecO // stopped. In either case the codec is closed. func (s *Server) ServeCodec(codec ServerCodec, options CodecOption) { defer codec.Close() - s.serveRequest(codec, false, options,context.Background()) + s.serveRequest(codec, false, options, context.Background()) } // ServeSingleRequest reads and processes a single RPC request from the given codec. It will not