Skip to content

Commit

Permalink
fix(lint): fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Mar 25, 2024
1 parent 3e5373a commit a28f269
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/dashboard/handler/conn_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ var upgrader = websocket.Upgrader{
},
}

func onEvictFunc(key string, value *response.OBConnection) {
return
func onEvictFunc(key string, _ *response.OBConnection) {
log.Printf("session expired: %s\n", key)
}

var sessionMap = expirable.NewLRU(100, onEvictFunc, time.Minute*10)
Expand All @@ -67,7 +67,7 @@ func (w wsWrapper) Read(p []byte) (int, error) {
w.cancel()
return 0, err
}
w.conn.SetReadDeadline(time.Now().Add(5 * time.Second))
_ = w.conn.SetReadDeadline(time.Now().Add(5 * time.Second))
return r.Read(p)
}

Expand All @@ -78,7 +78,7 @@ func (w wsWrapper) Write(p []byte) (int, error) {
w.cancel()
return 0, err
}
w.conn.SetWriteDeadline(time.Now().Add(5 * time.Second))
_ = w.conn.SetWriteDeadline(time.Now().Add(5 * time.Second))
return len(p), nil
}

Expand Down

0 comments on commit a28f269

Please sign in to comment.