chore(module): update go module
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"github.com/appleboy/gorush/config"
|
||||
"github.com/appleboy/gorush/storage"
|
||||
|
||||
"github.com/appleboy/com/convert"
|
||||
"github.com/dgraph-io/badger/v2"
|
||||
)
|
||||
|
||||
@@ -65,7 +64,7 @@ func (s *Storage) Reset() {
|
||||
|
||||
func (s *Storage) setBadger(key string, count int64) {
|
||||
err := s.db.Update(func(txn *badger.Txn) error {
|
||||
value := convert.ToString(count).(string)
|
||||
value := strconv.FormatInt(count, 10)
|
||||
return txn.Set([]byte(key), []byte(value))
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user