Skip to content

Commit

Permalink
remove unused ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Jul 16, 2024
1 parent 41c7e18 commit 85b254b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chain/action_test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ func NewInMemoryStore() *InMemoryStore {
}
}

func (s *InMemoryStore) GetValue(ctx context.Context, key []byte) ([]byte, error) {
func (s *InMemoryStore) GetValue(_ context.Context, key []byte) ([]byte, error) {
val, ok := s.Storage[string(key)]
if !ok {
return nil, database.ErrNotFound
}
return val, nil
}

func (s *InMemoryStore) Insert(ctx context.Context, key []byte, value []byte) error {
func (s *InMemoryStore) Insert(_ context.Context, key []byte, value []byte) error {
s.Storage[string(key)] = value
return nil
}

func (s *InMemoryStore) Remove(ctx context.Context, key []byte) error {
func (s *InMemoryStore) Remove(_ context.Context, key []byte) error {
delete(s.Storage, string(key))
return nil
}
Expand Down

0 comments on commit 85b254b

Please sign in to comment.