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

chore: update events schema #75

Merged
merged 14 commits into from
Nov 29, 2024
Merged

chore: update events schema #75

merged 14 commits into from
Nov 29, 2024

Conversation

gusin13
Copy link
Collaborator

@gusin13 gusin13 commented Nov 28, 2024

This pr

  1. removes the local schema files, will use the queue-client now
  2. pushes only 2 types of messages in queue (active/unbonding) as of now, will add others as needed when have more clarity
  3. TODO: need to push message on slashed as well

@gusin13 gusin13 marked this pull request as ready for review November 29, 2024 06:44
@@ -44,9 +45,13 @@ func main() {
log.Fatal().Err(err).Msg("error while creating db client")
}

qm, err := queue.NewQueueManager(&cfg.Queue)
// Create a basic zap logger
zapLogger, _ := zap.NewProduction()
Copy link
Collaborator

Choose a reason for hiding this comment

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

why using zap instead of the "github.com/rs/zerolog/log" that's already in the repo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

zap is needed for the queue-client, it accespt a logger in arguments 😄

@gusin13 gusin13 merged commit 757c59a into main Nov 29, 2024
9 checks passed
@gusin13 gusin13 deleted the gusin13/fix-events branch November 29, 2024 09:50
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.

2 participants