Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Funds logs pagination #408

Merged
merged 1 commit into from
Apr 8, 2022
Merged

Funds logs pagination #408

merged 1 commit into from
Apr 8, 2022

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Apr 5, 2022

Screen Shot 2022-04-05 at 10 34 26 AM

@dirkmc dirkmc force-pushed the feat/funds-logs-pagination branch from bcb98eb to 478b101 Compare April 5, 2022 08:35
@nonsense nonsense self-requested a review April 7, 2022 10:46
@@ -81,9 +80,27 @@ func (f *FundsDB) InsertLog(ctx context.Context, logs ...*FundsLog) error {
return nil
}

func (f *FundsDB) Logs(ctx context.Context) ([]FundsLog, error) {
func (f *FundsDB) Logs(ctx context.Context, first *time.Time, offset int, limit int) ([]FundsLog, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Maybe it's just me, but I don't associate first with time. I suggest renaming this to cursor.

Copy link
Member

@nonsense nonsense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dirkmc dirkmc merged commit 03761ac into main Apr 8, 2022
@dirkmc dirkmc deleted the feat/funds-logs-pagination branch April 8, 2022 14:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants