Convert between int64 (in postgresql) and uint64 (short channel id)

This commit is contained in:
Yaacov Akiba Slama
2022-09-19 20:47:21 +03:00
parent e16541c77d
commit 6594e3de27
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ func (cfe *copyFromEvents) Values() ([]interface{}, error) {
event := cfe.events[cfe.idx]
values := []interface{}{
event.TimestampNs,
event.ChanIdIn, event.ChanIdOut,
int64(event.ChanIdIn), int64(event.ChanIdOut),
event.AmtInMsat, event.AmtOutMsat}
return values, nil
}