forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] prometheusremotewrite: simplify wal initialization (open-tele…
…metry#30631) In the only production code that calls the `newWal` we first verify that the config is not nil then call into the `newWal` that returns error if config is nil which means that code never runs in production, so better to simplify the newWal and return nil if error is nil. Alternative we can just remove the nil check in `newWal` and rely on the caller to check for the nil config. Signed-off-by: Bogdan Drutu <[email protected]>
- Loading branch information
1 parent
c69b447
commit f07bcda
Showing
3 changed files
with
16 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters