Skip to content

Commit 04bb470

Browse files
committed
fix: full stops
1 parent 392c0c7 commit 04bb470

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dht_net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
var dhtReadMessageTimeout = 10 * time.Second
2626
var 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.
2929
var ErrReadTimeout = fmt.Errorf("timed out reading response")
3030

3131
// The Protobuf writer performs multiple small writes when writing a message.

events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
139139
func NewLookupTerminateEvent(reason LookupTerminationReason) *LookupTerminateEvent {
140140
return &LookupTerminateEvent{Reason: reason}
141141
}
142142

143143
// LookupTerminationReason captures reasons for terminating a lookup.
144144
type 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.
147147
func (r LookupTerminationReason) MarshalJSON() ([]byte, error) {
148148
return json.Marshal(r.String())
149149
}

0 commit comments

Comments
 (0)