mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd/loop: parse start_time_ns as int, not string
urfave/cli/v3 returns "" if an int flag is accessed using String getter.
This commit is contained in:
parent
e8f5a54b22
commit
5fa5a4e1b8
1 changed files with 1 additions and 5 deletions
|
|
@ -110,11 +110,7 @@ func listSwaps(ctx *cli.Context) error {
|
|||
|
||||
// Parse start timestamp if set.
|
||||
if ctx.IsSet("start_time_ns") {
|
||||
startTimestamp, err := strconv.ParseInt(ctx.String("start_time_ns"), 10, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error parsing start timestamp: %w", err)
|
||||
}
|
||||
filter.StartTimestampNs = startTimestamp
|
||||
filter.StartTimestampNs = ctx.Int64("start_time_ns")
|
||||
}
|
||||
|
||||
resp, err := client.ListSwaps(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue