correctly store cluster_time in sql

This commit is contained in:
Maximilian Schneider 2023-04-06 19:11:35 +02:00
parent 20a9914e76
commit e28a1976b3
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ impl BlockListener {
slot: slot as i64,
leader_id: 0, // TODO: lookup leader
parent_slot: parent_slot as i64,
cluster_time: Utc.timestamp_millis_opt(block_time).unwrap(),
cluster_time: Utc.timestamp_millis_opt(block_time*1000).unwrap(),
local_time: block_info.map(|b| b.processed_local_time).flatten(),
}))
.expect("Error sending block to postgres service");