Skip to content

Commit

Permalink
bench: add TC-1 postgres result struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Lou-Kamades committed Mar 27, 2024
1 parent 40bf799 commit dd10fa3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions benchrunner-service/src/postgres/confirmation_slot.rs
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

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

cannot find type `SystemTime` in this scope

Check failure on line 4 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

cannot find type `SystemTime` in this scope
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

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

missing lifetime specifiers

Check failure on line 13 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

cannot find trait `ToSql` in this scope

Check failure on line 13 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

missing lifetime specifiers

Check failure on line 13 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

cannot find trait `ToSql` in this scope
let values: &[&(dyn ToSql + Sync)] = &[

Check failure on line 14 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

cannot find trait `ToSql` in this scope

Check failure on line 14 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

cannot find trait `ToSql` in this scope
&self.signature,

Check failure on line 15 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

expected value, found module `self`

Check failure on line 15 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected value, found module `self`
&self.bench_datetime,

Check failure on line 16 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

expected value, found module `self`

Check failure on line 16 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected value, found module `self`
&(self.slot_sent as i64),

Check failure on line 17 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

expected value, found module `self`

Check failure on line 17 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected value, found module `self`
&(self.slot_confirmed as i64),

Check failure on line 18 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

expected value, found module `self`

Check failure on line 18 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected value, found module `self`
&self.endpoint,

Check failure on line 19 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

expected value, found module `self`

Check failure on line 19 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected value, found module `self`
&self.confirmed,

Check failure on line 20 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

expected value, found module `self`

Check failure on line 20 in benchrunner-service/src/postgres/confirmation_slot.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

expected value, found module `self`
&self.confirmation_time_ms,
];
values
}
}
1 change: 1 addition & 0 deletions benchrunner-service/src/postgres/mod.rs
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;

0 comments on commit dd10fa3

Please sign in to comment.