fix lint warning

This commit is contained in:
Lawrence, Rendall
2022-10-01 20:18:31 +03:00
parent 2c6ecf64df
commit 640c6c605b
+1 -1
View File
@@ -505,7 +505,7 @@ func (s *store) countPeers(ih bittorrent.InfoHash) (seeders int, leechers int) {
if rows.Next() {
si, li := -1, -1
for i, field := range rows.FieldDescriptions() {
name := strings.ToUpper(string(field.Name))
name := strings.ToUpper(field.Name)
switch name {
case s.Peer.CountSeedersColumn:
si = i