fix *bolt.Tx ==> *bbolt.Tx

This commit is contained in:
So Zhang 2019-01-23 10:34:21 +08:00 committed by GitHub
parent 846127d164
commit 5181527ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ type oldUser struct {
func readOldUsers(db *storm.DB) ([]*oldUser, error) {
users := []*oldUser{}
err := db.Bolt.View(func(tx *bolt.Tx) error {
err := db.Bolt.View(func(tx *bbolt.Tx) error {
return tx.Bucket([]byte("User")).ForEach(func(k []byte, v []byte) error {
if len(v) > 0 && string(v)[0] == '{' {
user := &oldUser{}