Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Feature/proofs #1

Merged
merged 19 commits into from
May 13, 2024
Merged

Feature/proofs #1

merged 19 commits into from
May 13, 2024

Conversation

violog
Copy link
Collaborator

@violog violog commented Apr 17, 2024

No description provided.

@violog violog requested a review from olegfomenko April 17, 2024 16:38
@violog violog self-assigned this Apr 17, 2024
ADD COLUMN amount TEXT NOT NULL DEFAULT '0urmo';

-- +migrate Down
ALTER TABLE participants

Choose a reason for hiding this comment

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

sure that we need this? i believe DROP TABLE participants; will drop all columns, including added

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it will, but this statements are for cases to rollback for specific "version" of the database, it seems to me that it's a good practice to have such an option.

@@ -53,6 +54,7 @@ func Run(args []string) bool {
switch cmd {
case serviceCmd.FullCommand():
run(service.Run)
run(func(context.Context, *config.Config) { broadcaster.Run(ctx, cfg) })

Choose a reason for hiding this comment

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

just use broadcaster.Run instead of wrapping into additional function

internal/config/main.go Outdated Show resolved Hide resolved
internal/broadcaster/broadcaster.go Show resolved Hide resolved
internal/cli/main.go Show resolved Hide resolved
@mhrynenko mhrynenko merged commit bbf12ad into main May 13, 2024
1 check passed
@mhrynenko mhrynenko deleted the feature/proofs branch May 13, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants