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

Add remaining services to cartesi-rollups-node #153

Merged
merged 7 commits into from
Nov 28, 2023

Conversation

torives
Copy link
Contributor

@torives torives commented Nov 16, 2023

Closes #139

@torives torives self-assigned this Nov 16, 2023
@torives torives added the no changelog PRs that don't require changes in changelog label Nov 16, 2023
@torives torives force-pushed the feat/add-remaining-services branch 2 times, most recently from 78b0ade to 38927c9 Compare November 16, 2023 18:10
@torives torives marked this pull request as ready for review November 16, 2023 21:12
@torives torives requested a review from a team November 16, 2023 21:12
internal/services/service.go Outdated Show resolved Hide resolved
internal/services/service.go Outdated Show resolved Hide resolved
internal/services/service.go Outdated Show resolved Hide resolved
internal/services/service.go Outdated Show resolved Hide resolved
test/fakeservice/main.go Outdated Show resolved Hide resolved
@gligneul
Copy link
Contributor

See #162

@torives torives force-pushed the feat/add-remaining-services branch 2 times, most recently from 49764ad to f88bce5 Compare November 22, 2023 21:01
Copy link
Contributor

@gligneul gligneul left a comment

Choose a reason for hiding this comment

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

Looks good. Minor comments.

internal/node/node.go Show resolved Hide resolved
internal/services/fakeservice/main.go Show resolved Hide resolved
internal/node/node.go Outdated Show resolved Hide resolved
internal/node/node.go Outdated Show resolved Hide resolved
internal/node/node.go Outdated Show resolved Hide resolved
internal/services/service_test.go Show resolved Hide resolved
internal/services/service_test.go Outdated Show resolved Hide resolved
internal/services/service_test.go Show resolved Hide resolved
internal/services/service_test.go Show resolved Hide resolved
internal/services/service_test.go Outdated Show resolved Hide resolved
@torives torives force-pushed the feat/add-remaining-services branch 2 times, most recently from 0d6e011 to 69e746c Compare November 23, 2023 17:59
gligneul
gligneul previously approved these changes Nov 23, 2023
@marcelstanley marcelstanley self-requested a review November 24, 2023 16:57
GMKrieger
GMKrieger previously approved these changes Nov 24, 2023
Copy link
Contributor

@GMKrieger GMKrieger left a comment

Choose a reason for hiding this comment

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

LGTM

@gligneul gligneul dismissed stale reviews from GMKrieger and themself November 24, 2023 20:50

The merge-base changed after approval.

@torives torives force-pushed the feat/add-remaining-services branch from 69e746c to fbc8df3 Compare November 27, 2023 14:09
gligneul
gligneul previously approved these changes Nov 27, 2023
torives and others added 6 commits November 27, 2023 14:47
Currently, there isn't a need to have multiple implementations of the Service interface. Therefore, this commits replaces it with its only implementation to keep things simple.
# Conflicts:
#	internal/services/service.go
We were incorrectly comparing the exit code with the SIGTERM signal. With this fixed, service.Start() won't return an error if the process was killed because its context was canceled
Uses context.Context to cancel services and sync.WaitGroup to wait for them to finish, making the code more idiomatic and easier to read
build/docker-compose.yml Show resolved Hide resolved
@torives torives merged commit c670945 into next Nov 28, 2023
5 checks passed
@torives torives deleted the feat/add-remaining-services branch November 28, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs that don't require changes in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants