-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#[derive(Debug)] | ||
pub struct PostgresConfirmationSlot { | ||
pub signature: String, | ||
pub bench_datetime: SystemTime, | ||
Check failure on line 4 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
pub slot_sent: u64, | ||
pub slot_confirmed: u64, | ||
pub endpoint: String, | ||
pub confirmed: bool, | ||
pub confirmation_time_ms: f32, | ||
} | ||
|
||
impl PostgresConfirmationSlot { | ||
pub fn to_values() -> &[&(dyn ToSql + Sync)] { | ||
Check failure on line 13 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
Check failure on line 13 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
Check failure on line 13 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / lite-rpc full build
|
||
let values: &[&(dyn ToSql + Sync)] = &[ | ||
Check failure on line 14 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&self.signature, | ||
Check failure on line 15 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&self.bench_datetime, | ||
Check failure on line 16 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&(self.slot_sent as i64), | ||
Check failure on line 17 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&(self.slot_confirmed as i64), | ||
Check failure on line 18 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&self.endpoint, | ||
Check failure on line 19 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&self.confirmed, | ||
Check failure on line 20 in benchrunner-service/src/postgres/confirmation_slot.rs GitHub Actions / Test lite-rpc against running Validator
|
||
&self.confirmation_time_ms, | ||
]; | ||
values | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod confirmation_slot; | ||
pub mod metrics_dbstore; | ||
pub mod postgres_session; | ||
pub mod postgres_session_cache; |