rpc: fix typo

This commit is contained in:
Haoran Wang 2024-04-21 13:55:10 +08:00
parent 7dad6f7c6a
commit a0e4790ca5
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ func NotifierFromContext(ctx context.Context) (*Notifier, bool) {
return n, ok
}
// Notifier is tied to a RPC connection that supports subscriptions.
// Notifier is tied to an RPC connection that supports subscriptions.
// Server callbacks use the notifier to send notifications.
type Notifier struct {
h *handler

View file

@ -38,7 +38,7 @@ type API struct {
}
// ServerCodec implements reading, parsing and writing RPC messages for the server side of
// a RPC session. Implementations must be go-routine safe since the codec can be called in
// an RPC session. Implementations must be go-routine safe since the codec can be called in
// multiple go-routines concurrently.
type ServerCodec interface {
peerInfo() PeerInfo