mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc: fix godoc comments and run gofmt
This commit is contained in:
parent
1c3e0688b0
commit
e903598c22
4 changed files with 13 additions and 14 deletions
|
|
@ -54,4 +54,3 @@ func DialIPC(ctx context.Context, endpoint string) (*Client, error) {
|
|||
return NewCodec(conn), err
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ type jsonCodec struct {
|
|||
conn deadlineCloser
|
||||
}
|
||||
|
||||
// NewCodec creates a codec which uses the given functions to read and write. If conn
|
||||
// NewFuncCodec creates a codec which uses the given functions to read and write. If conn
|
||||
// implements ConnRemoteAddr, log messages will use it to include the remote address of
|
||||
// the connection.
|
||||
func NewFuncCodec(conn deadlineCloser, encode, decode func(v interface{}) error) ServerCodec {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ func (s *Server) RegisterName(name string, receiver interface{}) error {
|
|||
return s.services.registerName(name, receiver)
|
||||
}
|
||||
|
||||
// receiver reads incoming requests from codec, calls the appropriate callback and writes
|
||||
// ServeCodec reads incoming requests from codec, calls the appropriate callback and writes
|
||||
// the response back using the given codec. It will block until the codec is closed or the
|
||||
// server is stopped. In either case the codec is closed.
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue