Skip to content

Commit

Permalink
Update cmd/thanos/receive.go
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Servén Marín <[email protected]>
  • Loading branch information
yashrsharma44 and squat authored May 28, 2021
1 parent b635613 commit 5473f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func registerReceive(app *extkingpin.App) {
AllowOverlappingBlocks: conf.tsdbAllowOverlappingBlocks,
}

// enable ingestion if endpoint is specified, or both the hashrings config are empty,
// Enable ingestion if endpoint is specified or if both the hashrings configs are empty.
// Otherwise, run the receiver exclusively as a distributor.
// otherwise run receiver in distributor mode.
enableIngestion := conf.endpoint != "" || (conf.hashringsFileContent == "" && conf.hashringsFilePath == "")

Expand Down

0 comments on commit 5473f5b

Please sign in to comment.