use genericized slice-reversing function

This commit is contained in:
Shivaram Lingamneni 2022-04-29 13:39:11 -04:00
parent 2a3b8e648c
commit 2df5fb1956
3 changed files with 11 additions and 9 deletions

View file

@ -916,7 +916,7 @@ func (mysql *MySQL) betweenTimestamps(ctx context.Context, target, correspondent
results, err = mysql.selectItems(ctx, queryBuf.String(), args...)
if err == nil && !ascending {
history.Reverse(results)
utils.ReverseSlice(results)
}
return
}