Skip to content

Commit 603afa2

Browse files
committed
Rebasing
1 parent e7b5d0b commit 603afa2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rust-runtime/aws-smithy-runtime/src/client/retries/token_bucket.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ use tokio::sync::{OwnedSemaphorePermit, Semaphore};
1313
use tracing::trace;
1414

1515
const DEFAULT_CAPACITY: usize = 500;
16-
<<<<<<< HEAD
17-
const MAXIMUM_CAPACITY: usize = 1_000_000;
18-
=======
1916
// On a 32 bit architecture, the value of Semaphore::MAX_PERMITS is 536,870,911.
2017
// Therefore, we will enforce a value lower than that to ensure behavior is
2118
// identical across platforms.
2219
// This also allows room for slight bucket overfill in the case where a bucket
2320
// is at maximum capacity and another thread drops a permit it was holding.
2421
const MAXIMUM_CAPACITY: usize = 500_000_000;
25-
>>>>>>> fdf7e2a42 (Moving max capacity for semaphore below max value on 32 bit system)
2622
const DEFAULT_RETRY_COST: u32 = 5;
2723
const DEFAULT_RETRY_TIMEOUT_COST: u32 = DEFAULT_RETRY_COST * 2;
2824
const PERMIT_REGENERATION_AMOUNT: usize = 1;

0 commit comments

Comments
 (0)