-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real-time Sync: Add push logic and run method #568
base: yse-rt-merge
Are you sure you want to change the base?
Conversation
2e5069f
to
e97418e
Compare
ae6e68e
to
5069019
Compare
e97418e
to
4de369e
Compare
5069019
to
f87a697
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some small comments.
4de369e
to
bd1f7ae
Compare
31adb31
to
902b6a9
Compare
bd1f7ae
to
c3a5d6e
Compare
61a24ee
to
ac5c4b3
Compare
c3a5d6e
to
29c1565
Compare
29c1565
to
8405996
Compare
ac5c4b3
to
dbd3736
Compare
ca96325
to
f024c00
Compare
f024c00
to
741ec9a
Compare
lib/core/src/persist/receive.rs
Outdated
@@ -316,6 +324,11 @@ impl Persister { | |||
}, | |||
)?; | |||
|
|||
let updated_fields = get_updated_fields!(mrh_tx_id, mrh_amount_sat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both these fields are recovered in the sync, so is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not anymore 👍
} | ||
} | ||
|
||
pub(crate) async fn run(self: Arc<Self>, mut shutdown: watch::Receiver<()>) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we call it start()
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handled in next PR (#578)
8405996
to
493b38d
Compare
741ec9a
to
e9f9798
Compare
493b38d
to
073d515
Compare
e9f9798
to
8714645
Compare
073d515
to
ce601d9
Compare
8714645
to
4e4b73f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
|
||
// Clean incoming | ||
let record = Record::new( | ||
SyncData::Receive(new_receive_sync_data(None, None)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SyncData::Receive(new_receive_sync_data(None, None)), | |
SyncData::Receive(new_receive_sync_data()), |
assert_eq!(incoming_records.len(), 0); // Records have been cleaned | ||
|
||
let mut inapplicable_record = Record::new( | ||
SyncData::Receive(new_receive_sync_data(None, None)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SyncData::Receive(new_receive_sync_data(None, None)), | |
SyncData::Receive(new_receive_sync_data()), |
Based on #555 and #556.
Closes #504, closes #505.
TODO: