Merge pull request #4253 from Roasbeef/fix-go12-duration
cmd/lncli: remove usage of Millisecond() for Go 1.12
This commit is contained in:
commit
db7eac35d0
@ -605,8 +605,8 @@ func formatPayment(payment *lnrpc.Payment, aliases *aliasCache) string {
|
|||||||
return "-"
|
return "-"
|
||||||
}
|
}
|
||||||
resolveTime := time.Unix(0, timeNs)
|
resolveTime := time.Unix(0, timeNs)
|
||||||
resolveTimeMs := resolveTime.Sub(createTime).
|
resolveTimeDiff := resolveTime.Sub(createTime)
|
||||||
Milliseconds()
|
resolveTimeMs := resolveTimeDiff / time.Millisecond
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"%.3f", float64(resolveTimeMs)/1000.0,
|
"%.3f", float64(resolveTimeMs)/1000.0,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user