Skip to content

Commit

Permalink
Adjust PolarIntegrationSample.swift for 0.0.124
Browse files Browse the repository at this point in the history
  • Loading branch information
arik-so committed Sep 5, 2024
1 parent e811f97 commit f16df10
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ public class PolarIntegrationSample {

class PolarChannelMonitorPersister: Persist {

override func persistNewChannel(channelFundingOutpoint channelId: Bindings.OutPoint, data: Bindings.ChannelMonitor, updateId: Bindings.MonitorUpdateId) -> Bindings.ChannelMonitorUpdateStatus {
override func persistNewChannel(channelFundingOutpoint: Bindings.OutPoint, monitor: Bindings.ChannelMonitor) -> Bindings.ChannelMonitorUpdateStatus {
return .Completed
}

override func updatePersistedChannel(channelFundingOutpoint channelId: Bindings.OutPoint, update: Bindings.ChannelMonitorUpdate, data: Bindings.ChannelMonitor, updateId: Bindings.MonitorUpdateId) -> Bindings.ChannelMonitorUpdateStatus {
override func updatePersistedChannel(channelFundingOutpoint: Bindings.OutPoint, monitorUpdate: Bindings.ChannelMonitorUpdate, monitor: Bindings.ChannelMonitor) -> Bindings.ChannelMonitorUpdateStatus {
return .Completed
}

Expand All @@ -347,11 +347,12 @@ public class PolarIntegrationSample {
await self.eventTracker.awaitAddition()
}
}

func handleEvent(event: Event) {
func handleEvent(event: Event) -> Result_NoneReplayEventZ {
Task {
await self.eventTracker.addEvent(event: event)
}
return .initWithOk()
}

override func persistScorer(scorer: Bindings.WriteableScore) -> Bindings.Result_NoneIOErrorZ {
Expand Down

0 comments on commit f16df10

Please sign in to comment.