Skip to content

Commit d5cb53a

Browse files
dropped eventuals
1 parent 3b497c2 commit d5cb53a

File tree

4 files changed

+21
-81
lines changed

4 files changed

+21
-81
lines changed

Cargo.lock

Lines changed: 4 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tap-agent/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ruint = { version = "1.12.3", features = [
3535
"num-traits",
3636
], default-features = false }
3737
futures-util = { version = "0.3.28", default-features = false }
38-
jsonrpsee = { version = "0.24.0", features = ["http-client", "tracing", "server"] }
38+
jsonrpsee = { version = "0.24.0", features = ["http-client", "tracing"] }
3939
tap_aggregator = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "eb8447e" }
4040
ractor = { version = "0.13", features = [
4141
"async-trait",

tap-agent/src/agent/sender_accounts_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ use anyhow::{anyhow, bail};
1414
use futures::{stream, StreamExt};
1515
use indexer_common::escrow_accounts::EscrowAccounts;
1616
use indexer_common::prelude::{Allocation, SubgraphClient};
17-
use ractor::concurrency::JoinHandle;
1817
use ractor::{Actor, ActorCell, ActorProcessingErr, ActorRef, SupervisionEvent};
1918
use reqwest::Url;
2019
use serde::Deserialize;
2120
use sqlx::{postgres::PgListener, PgPool};
2221
use tokio::select;
2322
use tokio::sync::watch::{self, Receiver};
23+
use tokio::task::JoinHandle;
2424
use tracing::{error, warn};
2525

2626
use prometheus::{register_counter_vec, CounterVec};

tap-agent/src/agent/sender_allocation.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ pub mod tests {
10421042
.unwrap();
10431043

10441044
let handle = Mutex::new(handle);
1045-
1045+
let aggregator_endpoint = "http://".to_owned() + &aggregator_endpoint.to_string();
10461046
// Start mock GraphQL server
10471047
let mock_server = MockServer::start().await;
10481048

@@ -1058,7 +1058,7 @@ pub mod tests {
10581058
)
10591059
.await;
10601060

1061-
(handle, aggregator_endpoint.to_string(), mock_server)
1061+
(handle, aggregator_endpoint, mock_server)
10621062
}
10631063
#[sqlx::test(migrations = "../migrations")]
10641064
async fn should_update_unaggregated_fees_on_start(pgpool: PgPool) {
@@ -1076,7 +1076,7 @@ pub mod tests {
10761076
// Create a sender_allocation.
10771077
let sender_allocation = create_sender_allocation(
10781078
pgpool.clone(),
1079-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1079+
aggregator_endpoint,
10801080
&mock_server.uri(),
10811081
Some(sender_account),
10821082
)
@@ -1124,7 +1124,7 @@ pub mod tests {
11241124
// Create a sender_allocation.
11251125
let sender_allocation = create_sender_allocation(
11261126
pgpool.clone(),
1127-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1127+
aggregator_endpoint,
11281128
&mock_server.uri(),
11291129
Some(sender_account),
11301130
)
@@ -1173,7 +1173,7 @@ pub mod tests {
11731173
// Create a sender_allocation.
11741174
let sender_allocation = create_sender_allocation(
11751175
pgpool.clone(),
1176-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1176+
aggregator_endpoint,
11771177
&mock_server.uri(),
11781178
Some(sender_account),
11791179
)
@@ -1257,7 +1257,7 @@ pub mod tests {
12571257
// Create a sender_allocation.
12581258
let sender_allocation = create_sender_allocation(
12591259
pgpool.clone(),
1260-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1260+
aggregator_endpoint,
12611261
&mock_server.uri(),
12621262
Some(sender_account),
12631263
)
@@ -1322,7 +1322,7 @@ pub mod tests {
13221322
// create allocation
13231323
let sender_allocation = create_sender_allocation(
13241324
pgpool.clone(),
1325-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1325+
aggregator_endpoint,
13261326
&mock_server.uri(),
13271327
Some(sender_account),
13281328
)
@@ -1445,7 +1445,7 @@ pub mod tests {
14451445
// create allocation
14461446
let args = create_sender_allocation_args(
14471447
pgpool.clone(),
1448-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1448+
aggregator_endpoint,
14491449
&mock_server.uri(),
14501450
None,
14511451
)
@@ -1476,7 +1476,7 @@ pub mod tests {
14761476
// create allocation
14771477
let args = create_sender_allocation_args(
14781478
pgpool.clone(),
1479-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1479+
aggregator_endpoint,
14801480
&mock_server.uri(),
14811481
None,
14821482
)
@@ -1514,7 +1514,7 @@ pub mod tests {
15141514
// create allocation
15151515
let args = create_sender_allocation_args(
15161516
pgpool.clone(),
1517-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1517+
aggregator_endpoint,
15181518
&mock_server.uri(),
15191519
None,
15201520
)
@@ -1550,7 +1550,7 @@ pub mod tests {
15501550
// create allocation
15511551
let args = create_sender_allocation_args(
15521552
pgpool.clone(),
1553-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1553+
aggregator_endpoint,
15541554
&mock_server.uri(),
15551555
None,
15561556
)
@@ -1590,7 +1590,7 @@ pub mod tests {
15901590
// create allocation
15911591
let args = create_sender_allocation_args(
15921592
pgpool.clone(),
1593-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1593+
aggregator_endpoint,
15941594
&mock_server.uri(),
15951595
None,
15961596
)
@@ -1637,7 +1637,7 @@ pub mod tests {
16371637
// create allocation
16381638
let args = create_sender_allocation_args(
16391639
pgpool.clone(),
1640-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1640+
aggregator_endpoint,
16411641
&mock_server.uri(),
16421642
None,
16431643
)
@@ -1673,7 +1673,7 @@ pub mod tests {
16731673
// create allocation
16741674
let sender_allocation = create_sender_allocation(
16751675
pgpool.clone(),
1676-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1676+
aggregator_endpoint,
16771677
&mock_server.uri(),
16781678
Some(sender_account),
16791679
)
@@ -1752,7 +1752,7 @@ pub mod tests {
17521752
// create allocation
17531753
let sender_allocation = create_sender_allocation(
17541754
pgpool.clone(),
1755-
"http://".to_owned() + &aggregator_endpoint.to_string(),
1755+
aggregator_endpoint,
17561756
&mock_server.uri(),
17571757
Some(sender_account),
17581758
)

0 commit comments

Comments
 (0)