Skip to content

Commit eb12c93

Browse files
committed
update diff adj interval
1 parent 9973ebf commit eb12c93

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ const CHANNEL_DIFF_UPDTATE_INTERVAL: u32 = 10;
3434
const MAX_LEN_DOWN_MSG: u32 = 10000;
3535
const MAIN_POOL_ADDRESS: &str = "mining.dmnd.work:2000";
3636
//const TEST_POOL_ADDRESS: &str = "127.0.0.1:20000";
37-
const TEST_POOL_ADDRESS: &str =
38-
"k8s-default-pool-de2d9b37ea-6bc40843aed871f2.elb.eu-central-1.amazonaws.com:2000";
37+
const TEST_POOL_ADDRESS: &str = "18.193.252.132:2000";
3938
const MAIN_AUTH_PUB_KEY: &str = "9bQHWXsQ2J9TRFTaxRh3KjoxdyLRfWVEy25YHtKF8y8gotLoCZZ";
4039
const TEST_AUTH_PUB_KEY: &str = "9auqWEzQDVyd2oe1JVGFLMLHZtCo2FFqZwtKA5gd9xbuEu7PH72";
4140
//const TP_ADDRESS: &str = "127.0.0.1:8442";

src/translator/downstream/notify.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ async fn start_update(
155155
let sleep_duration = if share_count >= crate::SHARE_PER_MIN * 3.0
156156
|| share_count <= crate::SHARE_PER_MIN / 3.0
157157
{
158-
std::time::Duration::from_millis(5000)
158+
// TODO: this should only apply when after the first share has been received
159+
std::time::Duration::from_millis(crate::ARGS.adjustment_interval)
159160
} else {
160161
std::time::Duration::from_millis(crate::ARGS.adjustment_interval)
161162
};

0 commit comments

Comments
 (0)