Skip to content

Commit 96e074e

Browse files
Update adapter/redis_compat_types.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 33a44a5 commit 96e074e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

adapter/redis_compat_types.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,7 @@ func newRedisStreamEntry(id string, fields []string) redisStreamEntry {
231231
}
232232

233233
func (e *redisStreamEntry) cacheParsedID() {
234-
parsed, err := parseRedisStreamID(e.ID)
235-
if err != nil {
236-
e.parsedID = redisStreamID{}
237-
e.parsedIDValid = false
238-
return
239-
}
240-
e.parsedID = parsed
241-
e.parsedIDValid = true
234+
e.parsedID, e.parsedIDValid = tryParseRedisStreamID(e.ID)
242235
}
243236

244237
func (e redisStreamEntry) compareID(raw string, parsed redisStreamID, parsedValid bool) int {

0 commit comments

Comments
 (0)