Skip to content

Commit

Permalink
lint: fix import shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioabreu committed Apr 24, 2024
1 parent efa8b28 commit f3f7eaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/db/redistore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ func (s *OriginStore) Update(ctx context.Context, origin service.Origin) error {
return err
}

func (s *OriginStore) Get(ctx context.Context, uuid uuid.UUID) (service.Origin, error) {
address, err := s.client.Get(ctx, uuid.String()).Result()
func (s *OriginStore) Get(ctx context.Context, id uuid.UUID) (service.Origin, error) {
address, err := s.client.Get(ctx, id.String()).Result()
if err != nil {
return service.Origin{}, err
}

return service.Origin{
ID: uuid,
ID: id,
Address: address,
}, nil
}

0 comments on commit f3f7eaf

Please sign in to comment.