Skip to content

Commit

Permalink
rename returned variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed May 3, 2024
1 parent e25c0c0 commit ce43ce8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/db/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,12 @@ func (db *Database) FindFinalityProviderStats(ctx context.Context, paginationTok
}
defer cursor.Close(ctx)

var delegations []model.FinalityProviderStatsDocument
if err = cursor.All(ctx, &delegations); err != nil {
var finalityProviders []model.FinalityProviderStatsDocument
if err = cursor.All(ctx, &finalityProviders); err != nil {
return nil, err
}

return toResultMapWithPaginationToken(db.cfg, delegations, model.BuildFinalityProviderStatsPaginationToken)
return toResultMapWithPaginationToken(db.cfg, finalityProviders, model.BuildFinalityProviderStatsPaginationToken)
}

func (db *Database) updateFinalityProviderStats(ctx context.Context, state, stakingTxHashHex, fpPkHex string, upsertUpdate primitive.M) error {
Expand Down

0 comments on commit ce43ce8

Please sign in to comment.