Skip to content

Commit 9f90043

Browse files
committed
Removed leftover and removed useless call to fmt.Errorf
1 parent b714608 commit 9f90043

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

commands/daemon/monitor.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package daemon
1717

1818
import (
1919
"errors"
20-
"fmt"
2120
"io"
2221
"sync/atomic"
2322

@@ -41,7 +40,7 @@ func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) e
4140
// ensure it's a config message and not data
4241
config := msg.GetMonitorConfig()
4342
if config == nil {
44-
return fmt.Errorf("first message must contain monitor configuration, not data")
43+
return errors.New("first message must contain monitor configuration, not data")
4544
}
4645

4746
// select which type of monitor we need
@@ -173,7 +172,6 @@ func (s *MonitorService) StreamingOpen(stream rpc.Monitor_StreamingOpenServer) e
173172
// Rate limit, filling all the available window
174173
if rateLimitEnabled {
175174
slots = atomic.AddInt32(&writeSlots, -1)
176-
//fmt.Println("FREE SLOTS:", slots)
177175
}
178176
}
179177
}

0 commit comments

Comments
 (0)