File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
2525var dhtReadMessageTimeout = 10 * time .Second
2626var dhtStreamIdleTimeout = 1 * time .Minute
2727
28- // ErrReadTimeout is an error that occurs when no message is read within the timeout period
28+ // ErrReadTimeout is an error that occurs when no message is read within the timeout period.
2929var ErrReadTimeout = fmt .Errorf ("timed out reading response" )
3030
3131// The Protobuf writer performs multiple small writes when writing a message.
Original file line number Diff line number Diff line change @@ -135,15 +135,15 @@ type LookupTerminateEvent struct {
135135 Reason LookupTerminationReason
136136}
137137
138- // NewLookupTerminateEvent creates a new lookup termination event with a given reason
138+ // NewLookupTerminateEvent creates a new lookup termination event with a given reason.
139139func NewLookupTerminateEvent (reason LookupTerminationReason ) * LookupTerminateEvent {
140140 return & LookupTerminateEvent {Reason : reason }
141141}
142142
143143// LookupTerminationReason captures reasons for terminating a lookup.
144144type LookupTerminationReason int
145145
146- // MarshalJSON returns the JSON encoding of the passed lookup termination reason
146+ // MarshalJSON returns the JSON encoding of the passed lookup termination reason.
147147func (r LookupTerminationReason ) MarshalJSON () ([]byte , error ) {
148148 return json .Marshal (r .String ())
149149}
You can’t perform that action at this time.
0 commit comments