Skip to content

Commit 62a08fb

Browse files
committed
Update docs to use LDKChannelMonitorUpdateStatus
1 parent a7a6d63 commit 62a08fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ import Foundation
112112

113113
class MyPersister: Persist {
114114

115-
override func persist_new_channel(channel_id: OutPoint, data: ChannelMonitor, update_id: MonitorUpdateId) -> Result_NoneChannelMonitorUpdateErrZ {
115+
override func persist_new_channel(channel_id: OutPoint, data: ChannelMonitor, update_id: MonitorUpdateId) -> LDKChannelMonitorUpdateStatus {
116116
let idBytes: [UInt8] = channel_id.write()
117117
let monitorBytes: [UInt8] = data.write()
118118

119119
// persist monitorBytes to disk, keyed by idBytes
120120

121-
return Result_NoneChannelMonitorUpdateErrZ.ok()
121+
return LDKChannelMonitorUpdateStatus_Completed
122122
}
123123

124-
override func update_persisted_channel(channel_id: OutPoint, update: ChannelMonitorUpdate, data: ChannelMonitor, update_id: MonitorUpdateId) -> Result_NoneChannelMonitorUpdateErrZ {
124+
override func update_persisted_channel(channel_id: OutPoint, update: ChannelMonitorUpdate, data: ChannelMonitor, update_id: MonitorUpdateId) -> LDKChannelMonitorUpdateStatus {
125125
let idBytes: [UInt8] = channel_id.write()
126126
let monitorBytes: [UInt8] = data.write()
127127

128128
// modify persisted monitorBytes keyed by idBytes on disk
129129

130-
return Result_NoneChannelMonitorUpdateErrZ.ok()
130+
return LDKChannelMonitorUpdateStatus_Completed
131131
}
132132

133133
}

0 commit comments

Comments
 (0)