Skip to content

Commit 973e996

Browse files
committed
fix some lint errors
1 parent 63ffba6 commit 973e996

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

osc.go

-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ type netWriter interface {
108108
WriteTo([]byte, net.Addr) (int, error)
109109
}
110110

111-
var errClosed = errors.New("conn is closed")
112-
113111
func checkDispatcher(dispatcher Dispatcher) error {
114112
if dispatcher == nil {
115113
return ErrNilDispatcher

unix.go

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (conn *UnixConn) Serve(numWorkers int, dispatcher Dispatcher) error {
114114
return serve(conn, numWorkers, dispatcher)
115115
}
116116

117+
// TempSocket creates an absolute path to a temporary socket file.
117118
func TempSocket() string {
118119
return filepath.Join(os.TempDir(), ulid.New().String()) + ".sock"
119120
}

worker.go

+2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import (
44
"github.com/pkg/errors"
55
)
66

7+
// Worker is a worker who can process OSC messages.
78
type Worker struct {
89
DataChan chan Incoming
910
Dispatcher Dispatcher
1011
ErrChan chan error
1112
Ready chan<- Worker
1213
}
1314

15+
// Run runs the worker.
1416
func (w Worker) Run() {
1517
w.Ready <- w
1618

0 commit comments

Comments
 (0)