Skip to content

Commit

Permalink
Remove redundant typecasts (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored Jan 16, 2025
1 parent ab2f9da commit 2a2d342
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ rabbitmq_data

.vscode
.env
.idea

# Database files
*.db
2 changes: 1 addition & 1 deletion internal/services/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (s *Service) processBlocksSequentially(ctx context.Context) *types.Error {
}
}

if dbErr := s.db.UpdateLastProcessedBbnHeight(ctx, uint64(i)); dbErr != nil {
if dbErr := s.db.UpdateLastProcessedBbnHeight(ctx, i); dbErr != nil {
return types.NewError(
http.StatusInternalServerError,
types.InternalServiceError,
Expand Down
2 changes: 1 addition & 1 deletion internal/services/expiry_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *Service) checkExpiry(ctx context.Context) *types.Error {
)
}

expiredDelegations, err := s.db.FindExpiredDelegations(ctx, uint64(btcTip), s.cfg.Poller.ExpiredDelegationsLimit)
expiredDelegations, err := s.db.FindExpiredDelegations(ctx, btcTip, s.cfg.Poller.ExpiredDelegationsLimit)
if err != nil {
return types.NewInternalServiceError(
fmt.Errorf("failed to find expired delegations: %w", err),
Expand Down

0 comments on commit 2a2d342

Please sign in to comment.