fix ci tests: unnecessary conversion

This commit is contained in:
Rafael Sampaio 2024-10-27 23:43:28 -03:00 committed by Chen Kai
parent c8f6feb7ae
commit 775d71541d
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ func NewBeaconStorage(config storage.PortalStorageConfig) (storage.ContentStorag
} else { } else {
q.Scan(resStr) q.Scan(resStr)
} }
contentStorageUsage.Update(int64(*resStr)) contentStorageUsage.Update(*resStr)
} }
return bs, nil return bs, nil
} }

View file

@ -81,7 +81,7 @@ func NewStateStorage(store storage.ContentStorage, db *sql.DB) *StateStorage {
} else { } else {
q.Scan(resStr) q.Scan(resStr)
} }
contentStorageUsage.Update(int64(*resStr)) contentStorageUsage.Update(*resStr)
} }
return storage return storage