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

refactor: Refactor pubsub package in order to keep defaults consistent #129

Merged
merged 2 commits into from
May 17, 2024

Conversation

denopink
Copy link
Contributor

@denopink denopink commented May 16, 2024

  • Refactor the pubsub package in order to keep defaults consistent, since defaults are set in cmd/xmidt-agent/config.go

@denopink denopink added the enhancement improvement or small functionality added to an existing feature label May 16, 2024
@denopink denopink requested review from schmidtw and piccione99 May 16, 2024 18:55
@denopink denopink self-assigned this May 16, 2024
Comment on lines -72 to -78
defaults := []Option{
WithPublishTimeout(5 * time.Second),
}

// Prepend the defaults to the provided options.
opts = append(defaults, opts...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing in order to keep things consistent (where our defaults are set), since we already set defaults in cmd/xmidt-agent/config.go

…tup consistent

- Refactoring the pubsub package in order to keep defaults setup consistent, since defaults are set in `cmd/xmidt-agent/config.go`
@denopink denopink force-pushed the denopink/refactor/pubsub-defaults-consistency- branch from 132e98d to 21f2812 Compare May 16, 2024 19:39
PublishTimeout: 200 * time.Millisecond,
PublishTimeout: 5 * time.Second,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use the actual pubsub package default 5 * time.Second

@denopink denopink changed the title refactor: Refactor pubsub package in order to keep defaults setup consistent refactor: Refactor pubsub package in order to keep defaults consistent May 17, 2024
@schmidtw schmidtw merged commit 93bc3ae into main May 17, 2024
14 checks passed
@schmidtw schmidtw deleted the denopink/refactor/pubsub-defaults-consistency- branch May 17, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvement or small functionality added to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants