chore(style): fix format by gofumpt

This commit is contained in:
Bo-Yi Wu
2021-01-23 09:39:06 +08:00
parent d32ca7f015
commit d77e7fe4f2
19 changed files with 48 additions and 74 deletions

View File

@@ -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())
}

View File

@@ -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())
}