diff options
author | Fabio Berger <fabioberger1991@gmail.com> | 2016-06-21 12:52:38 +0800 |
---|---|---|
committer | Fabio Berger <fabioberger1991@gmail.com> | 2016-06-22 00:38:35 +0800 |
commit | a3efdb13f281cef2db0e384669f2aa5c8b110416 (patch) | |
tree | 5e7dc043505c388ef86faa77adf88477cd80b49b /rpc/server.go | |
parent | 4f3f6e28d545ffd84a98520347ba6670d80272b5 (diff) | |
download | dexon-a3efdb13f281cef2db0e384669f2aa5c8b110416.tar.gz dexon-a3efdb13f281cef2db0e384669f2aa5c8b110416.tar.zst dexon-a3efdb13f281cef2db0e384669f2aa5c8b110416.zip |
README, core, rpc: fix various typos
Diffstat (limited to 'rpc/server.go')
-rw-r--r-- | rpc/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/server.go b/rpc/server.go index 69f3271e8..7b7d22063 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -82,7 +82,7 @@ func (s *RPCService) Modules() map[string]string { return modules } -// RegisterName will create an service for the given rcvr type under the given name. When no methods on the given rcvr +// RegisterName will create a service for the given rcvr type under the given name. When no methods on the given rcvr // match the criteria to be either a RPC method or a subscription an error is returned. Otherwise a new service is // created and added to the service collection this server instance serves. func (s *Server) RegisterName(name string, rcvr interface{}) error { @@ -236,7 +236,7 @@ func (s *Server) ServeSingleRequest(codec ServerCodec, options CodecOption) { } // Stop will stop reading new requests, wait for stopPendingRequestTimeout to allow pending requests to finish, -// close all codecs which will cancels pending requests/subscriptions. +// close all codecs which will cancel pending requests/subscriptions. func (s *Server) Stop() { if atomic.CompareAndSwapInt32(&s.run, 1, 0) { glog.V(logger.Debug).Infoln("RPC Server shutdown initiatied") @@ -294,7 +294,7 @@ func (s *Server) handle(ctx context.Context, codec ServerCodec, req *serverReque return codec.CreateErrorResponse(&req.id, &callbackError{err.Error()}), nil } - // active the subscription after the sub id was successful sent to the client + // active the subscription after the sub id was successfully sent to the client activateSub := func() { notifier, _ := NotifierFromContext(ctx) notifier.(*bufferedNotifier).activate(subid) |