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
// Kick off remote backup asynchronously (non-blocking)
61
+
BackupClient.addToPersistQueue(.channelMonitor(id: channelIdHex),[UInt8](serialized)){ error in
62
+
iflet error {
63
+
LdkEventEmitter.shared.send(withEvent:.native_log, body:"Warning. Remote backup failed for new channel (\(channelIdHex)), but channel was persisted locally. \(error.localizedDescription)")
64
+
}
65
+
}
66
+
67
+
returnChannelMonitorUpdateStatus.Completed
68
+
}
69
+
70
+
// For updates: try remote backup first, then write locally on success (original behavior)
71
+
BackupClient.addToPersistQueue(.channelMonitor(id: channelIdHex),[UInt8](serialized)){ error in
41
72
iflet error {
42
73
LdkEventEmitter.shared.send(withEvent:.native_log, body:"Error. Failed persist channel on remote server (\(channelIdHex)). \(error.localizedDescription)")
43
74
return
44
75
}
45
76
46
-
// Callback for when the persist queue queue entry is processed
77
+
// Callback for when the persist queue entry is processed
0 commit comments