chore: update to latest nightly (#1398)
This commit is contained in:
parent
cf16fa3211
commit
d66c00f84a
File diff suppressed because it is too large
Load Diff
|
@ -1,2 +1,2 @@
|
|||
[toolchain]
|
||||
channel = "nightly-2023-07-23"
|
||||
channel = "nightly-2024-03-26"
|
||||
|
|
|
@ -14,7 +14,7 @@ use {
|
|||
ensure,
|
||||
Result,
|
||||
},
|
||||
chrono::NaiveDateTime,
|
||||
chrono::DateTime,
|
||||
futures::StreamExt,
|
||||
proto::spy::v1::{
|
||||
filter_entry::Filter,
|
||||
|
@ -200,9 +200,11 @@ pub async fn process_message(state: Arc<State>, vaa_bytes: Vec<u8>) -> Result<()
|
|||
let vaa = serde_wormhole::from_slice::<Vaa<&RawMessage>>(&vaa_bytes)?;
|
||||
|
||||
// Log VAA Processing.
|
||||
let vaa_timestamp = NaiveDateTime::from_timestamp_opt(vaa.timestamp as i64, 0);
|
||||
let vaa_timestamp = vaa_timestamp.unwrap();
|
||||
let vaa_timestamp = vaa_timestamp.format("%Y-%m-%dT%H:%M:%S.%fZ").to_string();
|
||||
let vaa_timestamp = DateTime::from_timestamp(vaa.timestamp as i64, 0)
|
||||
.ok_or(anyhow!("Failed to parse VAA Tiestamp"))?
|
||||
.format("%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
.to_string();
|
||||
|
||||
let slot = match WormholeMessage::try_from_bytes(vaa.payload)?.payload {
|
||||
WormholePayload::Merkle(proof) => proof.slot,
|
||||
};
|
||||
|
|
|
@ -137,7 +137,8 @@ async fn retrieve_message_state(
|
|||
// Get the first element that is greater than or equal to the lookup time.
|
||||
key_cache
|
||||
.lower_bound(Bound::Included(&lookup_time))
|
||||
.value()
|
||||
.peek_next()
|
||||
.map(|(_, v)| v)
|
||||
.cloned()
|
||||
}
|
||||
RequestTime::AtSlot(slot) => {
|
||||
|
|
Loading…
Reference in New Issue