Skip to content

Commit

Permalink
feat: remove tx field in accountStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubisoft-potato committed Feb 3, 2024
1 parent 7dd66b4 commit 6d895ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/account/storage/v2/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,5 @@ func TestListAccountsV2(t *testing.T) {

func newAccountStorageWithMock(t *testing.T, mockController *gomock.Controller) *accountStorage {
t.Helper()
return &accountStorage{mock.NewMockClient(mockController), nil}
return &accountStorage{mock.NewMockClient(mockController)}
}
3 changes: 1 addition & 2 deletions pkg/account/storage/v2/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ const transactionKey = "transaction"

type accountStorage struct {
client mysql.Client
tx mysql.Transaction
}

func NewAccountStorage(client mysql.Client) AccountStorage {
return &accountStorage{client, nil}
return &accountStorage{client}
}

func (s *accountStorage) RunInTransaction(ctx context.Context, f func() error) error {
Expand Down

0 comments on commit 6d895ef

Please sign in to comment.