Skip to content

Commit 3e3726c

Browse files
lucarin91cmaglie
andauthored
Update internal/monitor/monitor.go
Co-authored-by: Cristian Maglie <c.maglie@bug.st>
1 parent a3a434e commit 3e3726c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/monitor/monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func NewMonitorHandler(ws MessageReaderWriter) (func(), error) {
3636
// Connect to monitor
3737
mon, err := net.DialTimeout("tcp", "127.0.0.1:7500", time.Second)
3838
if err != nil {
39-
return func() {}, err
39+
return nil, err
4040
}
4141

4242
return func() {

0 commit comments

Comments
 (0)