Skip to content

Commit fcb5426

Browse files
committed
feat: [wip] payments poller skeleton
1 parent d3adcf8 commit fcb5426

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

aggregation_mode/batcher/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ edition = "2021"
77
serde = { workspace = true }
88
serde_json = { workspace = true }
99
serde_yaml = { workspace = true }
10+
aligned-sdk = { workspace = true }
1011
tracing = { version = "0.1", features = ["log"] }
1112
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
1213
actix-web = "4"
1314
# TODO: enable tls
14-
sqlx = { version = "0.8", features = [ "runtime-tokio", "postgres" ] }
15+
sqlx = { version = "0.8", features = [ "runtime-tokio", "postgres", "uuid" ] }
16+
hex = "0.4"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pub mod config;
22
pub mod db;
3+
pub mod payments;
34
pub mod server;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use crate::{config::Config, db::Db};
2+
3+
struct PaymentsPooler {
4+
db: Db,
5+
}
6+
7+
impl PaymentsPooler {
8+
pub fn new(db: Db, config: Config) -> Self {
9+
Self { db }
10+
}
11+
12+
pub async fn start() {}
13+
}

0 commit comments

Comments
 (0)