From fd4f715ad9c21e367bb3f34ae9e6c3374ecfa968 Mon Sep 17 00:00:00 2001 From: onyinyang Date: Thu, 9 Feb 2023 16:24:43 -0500 Subject: [PATCH] REVERT BEFORE USING: make BA today function, bridge_table public for testing --- crates/lox-library/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/lox-library/src/lib.rs b/crates/lox-library/src/lib.rs index 0cd9b45..c20d895 100644 --- a/crates/lox-library/src/lib.rs +++ b/crates/lox-library/src/lib.rs @@ -224,7 +224,7 @@ pub struct BridgeAuth { pub bridgedb_pub: PublicKey, /// The bridge table - bridge_table: BridgeTable, + pub bridge_table: BridgeTable, /// The migration tables trustup_migration_table: MigrationTable, @@ -398,7 +398,7 @@ impl BridgeAuth { self.time_offset += time::Duration::days(1); } - #[cfg(test)] + //#[cfg(test)] /// For testing only: manually advance the day by the given number /// of days pub fn advance_days(&mut self, days: u16) { @@ -406,7 +406,7 @@ impl BridgeAuth { } /// Get today's (real or simulated) date - fn today(&self) -> u32 { + pub fn today(&self) -> u32 { // We will not encounter negative Julian dates (~6700 years ago) // or ones larger than 32 bits (time::OffsetDateTime::now_utc().date() + self.time_offset)