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:
2026-07-04 23:14:52 +09:00
parent 71ff3de617
commit b37ec3cef0
5 changed files with 45 additions and 15 deletions
+2 -2
View File
@@ -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()
}
}