mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
rpc: go fmt -s
This commit is contained in:
parent
0043e32e71
commit
9980727797
1 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ func (s *Server) serveRequest(codec ServerCodec, singleShot bool, options CodecO
|
||||||
s.codecsMu.Unlock()
|
s.codecsMu.Unlock()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// ctx, cancel := context.WithCancel(context.Background())
|
// ctx, cancel := context.WithCancel(context.Background())
|
||||||
ctx, cancel := context.WithCancel(ctx)
|
ctx, cancel := context.WithCancel(ctx)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ func (s *Server) serveRequest(codec ServerCodec, singleShot bool, options CodecO
|
||||||
// stopped. In either case the codec is closed.
|
// stopped. In either case the codec is closed.
|
||||||
func (s *Server) ServeCodec(codec ServerCodec, options CodecOption) {
|
func (s *Server) ServeCodec(codec ServerCodec, options CodecOption) {
|
||||||
defer codec.Close()
|
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
|
// ServeSingleRequest reads and processes a single RPC request from the given codec. It will not
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue