chore(module): update go module

This commit is contained in:
Bo-Yi Wu
2021-03-27 13:51:51 +08:00
parent 542854e025
commit db9dfea6d7
3 changed files with 424 additions and 114 deletions

View File

@@ -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 {