Skip to content

Commit

Permalink
dropped eventuals
Browse files Browse the repository at this point in the history
  • Loading branch information
taslimmuhammed committed Oct 30, 2024
1 parent 3b497c2 commit d5cb53a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 81 deletions.
68 changes: 4 additions & 64 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tap-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ruint = { version = "1.12.3", features = [
"num-traits",
], default-features = false }
futures-util = { version = "0.3.28", default-features = false }
jsonrpsee = { version = "0.24.0", features = ["http-client", "tracing", "server"] }
jsonrpsee = { version = "0.24.0", features = ["http-client", "tracing"] }
tap_aggregator = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "eb8447e" }
ractor = { version = "0.13", features = [
"async-trait",
Expand Down
2 changes: 1 addition & 1 deletion tap-agent/src/agent/sender_accounts_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ use anyhow::{anyhow, bail};
use futures::{stream, StreamExt};
use indexer_common::escrow_accounts::EscrowAccounts;
use indexer_common::prelude::{Allocation, SubgraphClient};
use ractor::concurrency::JoinHandle;
use ractor::{Actor, ActorCell, ActorProcessingErr, ActorRef, SupervisionEvent};
use reqwest::Url;
use serde::Deserialize;
use sqlx::{postgres::PgListener, PgPool};
use tokio::select;
use tokio::sync::watch::{self, Receiver};
use tokio::task::JoinHandle;
use tracing::{error, warn};

use prometheus::{register_counter_vec, CounterVec};
Expand Down
30 changes: 15 additions & 15 deletions tap-agent/src/agent/sender_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ pub mod tests {
.unwrap();

let handle = Mutex::new(handle);

let aggregator_endpoint = "http://".to_owned() + &aggregator_endpoint.to_string();
// Start mock GraphQL server
let mock_server = MockServer::start().await;

Expand All @@ -1058,7 +1058,7 @@ pub mod tests {
)
.await;

(handle, aggregator_endpoint.to_string(), mock_server)
(handle, aggregator_endpoint, mock_server)
}
#[sqlx::test(migrations = "../migrations")]
async fn should_update_unaggregated_fees_on_start(pgpool: PgPool) {
Expand All @@ -1076,7 +1076,7 @@ pub mod tests {
// Create a sender_allocation.
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down Expand Up @@ -1124,7 +1124,7 @@ pub mod tests {
// Create a sender_allocation.
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down Expand Up @@ -1173,7 +1173,7 @@ pub mod tests {
// Create a sender_allocation.
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down Expand Up @@ -1257,7 +1257,7 @@ pub mod tests {
// Create a sender_allocation.
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down Expand Up @@ -1322,7 +1322,7 @@ pub mod tests {
// create allocation
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down Expand Up @@ -1445,7 +1445,7 @@ pub mod tests {
// create allocation
let args = create_sender_allocation_args(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
None,
)
Expand Down Expand Up @@ -1476,7 +1476,7 @@ pub mod tests {
// create allocation
let args = create_sender_allocation_args(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
None,
)
Expand Down Expand Up @@ -1514,7 +1514,7 @@ pub mod tests {
// create allocation
let args = create_sender_allocation_args(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
None,
)
Expand Down Expand Up @@ -1550,7 +1550,7 @@ pub mod tests {
// create allocation
let args = create_sender_allocation_args(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
None,
)
Expand Down Expand Up @@ -1590,7 +1590,7 @@ pub mod tests {
// create allocation
let args = create_sender_allocation_args(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
None,
)
Expand Down Expand Up @@ -1637,7 +1637,7 @@ pub mod tests {
// create allocation
let args = create_sender_allocation_args(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
None,
)
Expand Down Expand Up @@ -1673,7 +1673,7 @@ pub mod tests {
// create allocation
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down Expand Up @@ -1752,7 +1752,7 @@ pub mod tests {
// create allocation
let sender_allocation = create_sender_allocation(
pgpool.clone(),
"http://".to_owned() + &aggregator_endpoint.to_string(),
aggregator_endpoint,
&mock_server.uri(),
Some(sender_account),
)
Expand Down

0 comments on commit d5cb53a

Please sign in to comment.