cmd/streamdata: display last entry
Useful for catching up with multiple missed entries. Signed-off-by: Yonah <contrib@gensokyo.uk>
This commit is contained in:
@@ -86,8 +86,8 @@ func atoi(data []byte) (v uint64, err error) {
|
||||
10, 64,
|
||||
)
|
||||
if err != nil {
|
||||
var numError *strconv.NumError
|
||||
if errors.As(err, &numError) && numError != nil {
|
||||
numError, ok := errors.AsType[*strconv.NumError](err)
|
||||
if ok && numError != nil {
|
||||
err = numError.Unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user