chore(style): fix format by gofumpt
This commit is contained in:
@@ -68,7 +68,6 @@ func (s *Storage) setBadger(key string, count int64) {
|
||||
value := convert.ToString(count).(string)
|
||||
return txn.Set([]byte(key), []byte(value))
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
log.Println(s.name, "update error:", err.Error())
|
||||
}
|
||||
@@ -95,7 +94,6 @@ func (s *Storage) getBadger(key string, count *int64) {
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
log.Println(s.name, "get error:", err.Error())
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ func (s *Storage) setBuntDB(key string, count int64) {
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
log.Println("BuntDB update error:", err.Error())
|
||||
}
|
||||
@@ -70,7 +69,6 @@ func (s *Storage) getBuntDB(key string, count *int64) {
|
||||
*count, _ = strconv.ParseInt(val, 10, 64)
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
log.Println("BuntDB get error:", err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user