Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
castaneai committed Dec 25, 2023
1 parent 325bab5 commit ff6ba90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"golang.org/x/sync/errgroup"
"open-match.dev/open-match/pkg/pb"

"github.com/castaneai/minimatch/pkg/mmlog"
"github.com/castaneai/minimatch/pkg/statestore"
)

Expand Down Expand Up @@ -98,7 +97,6 @@ func (b *Backend) Start(ctx context.Context, tickRate time.Duration) error {
for profile := range b.mmfs {
profiles = append(profiles, profile.Name)
}
mmlog.Infof("minimatch backend started (matchProfile: %v, tickRate: %s)", profiles, tickRate)
for {
select {
case <-ctx.Done():
Expand Down
2 changes: 1 addition & 1 deletion pkg/statestore/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s *RedisStore) GetActiveTickets(ctx context.Context, limit int64) ([]*pb.T
// Acquire a lock to prevent multiple backends from fetching the same Ticket
lockedCtx, unlock, err := s.locker.WithContext(ctx, redisKeyFetchTicketsLock)
if err != nil {
return nil, fmt.Errorf("failed to acquire fetch tickets lock")
return nil, fmt.Errorf("failed to acquire fetch tickets lock: %w", err)
}
defer unlock()

Expand Down

0 comments on commit ff6ba90

Please sign in to comment.