Skip to content

Commit

Permalink
add timestamp when other prices exist (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha authored Sep 9, 2024
1 parent fc08990 commit 7bd4923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/slinky.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ func (oc oracleClientWithTimestamp) Prices(ctx context.Context, req *oracleserve
return nil, err
}

resp.Prices[l2slinky.ReservedCPTimestamp] = strconv.FormatInt(resp.Timestamp.UTC().UnixNano(), 10)
if resp != nil {
resp.Prices[l2slinky.ReservedCPTimestamp] = strconv.FormatInt(resp.Timestamp.UTC().UnixNano(), 10)
}
return resp, err
}

0 comments on commit 7bd4923

Please sign in to comment.