Skip to content

Go back to reading multi_buy_enabled flag#325

Merged
macpie merged 1 commit intomainfrom
mj/mb-flag
Mar 3, 2026
Merged

Go back to reading multi_buy_enabled flag#325
macpie merged 1 commit intomainfrom
mj/mb-flag

Conversation

@michaeldjeffrey
Copy link
Contributor

When we haven't already exceeded the multi-buy limit for apacket locally, we first check if the multi-buy client is enabled at all before making the grpc request to the configured server.

When the app is starting up, we check if multi-buy is enabled before trying to connect the grpc client.

Added HPR_MULTI_BUY_ENABLED env variable. Should be

  • true :: for servers with multiples in a region
  • false :: for single servers in a region

hpr_multi_buy:enabled() defaults to true when no configuration is provided.

When we haven't already exceeded the multi-buy limit for  apacket
locally, we first check if the multi-buy client is enabled at all before
making the grpc request to the configured server.

When the app is starting up, we check if multi-buy is enabled before
trying to connect the grpc client.

Added `HPR_MULTI_BUY_ENABLED` env variable. Should be
- true :: for servers with multiples in a region
- false :: for single servers in a region

`hpr_multi_buy:enabled()` defaults to `true` when no configuration is provided.
@macpie macpie merged commit 6c98fb7 into main Mar 3, 2026
49 of 51 checks passed
@macpie macpie deleted the mj/mb-flag branch March 3, 2026 20:35
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