You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mithril-aggregator/src/database/provider/open_message.rs
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,14 @@ impl SqLiteEntity for OpenMessage {
98
98
let epoch_val = u64::try_from(epoch_setting_id)
99
99
.map_err(|e| panic!("Integer field open_message.epoch_setting_id (value={epoch_setting_id}) is incompatible with u64 Epoch representation. Error = {e}"))?;
100
100
101
-
let beacon_str = row.get::<String,_>(2);
101
+
// TODO: We need to check first that the cell can be read as a string first
102
+
// (e.g. when beacon json is '{"network": "dev", "epoch": 1, "immutable_file_number": 2}').
103
+
// If it fails, we fallback on readign the cell as an integer (e.g. when beacon json is '5').
0 commit comments