Skip to content

Commit adb6771

Browse files
committed
fix
Signed-off-by: Huamin Chen <[email protected]>
1 parent dcfed3f commit adb6771

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/semantic-router/pkg/cache/redis_cache.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ func (c *RedisCache) createIndex() error {
338338
FieldType: redis.SearchFieldTypeNumeric,
339339
},
340340
).Result()
341-
342341
if err != nil {
343342
return fmt.Errorf("failed to create Redis index: %w", err)
344343
}
@@ -403,7 +402,6 @@ func (c *RedisCache) UpdateWithResponse(requestID string, responseBody []byte) e
403402
Limit: 1,
404403
},
405404
).Result()
406-
407405
if err != nil {
408406
logging.Infof("RedisCache.UpdateWithResponse: search failed with query '%s': %v", query, err)
409407
metrics.RecordCacheOperation("redis", "update_response", "error", time.Since(start).Seconds())
@@ -529,7 +527,6 @@ func (c *RedisCache) addEntry(id string, requestID string, model string, query s
529527
"timestamp": time.Now().Unix(),
530528
},
531529
).Err()
532-
533530
if err != nil {
534531
logging.Debugf("RedisCache.addEntry: HSet failed: %v", err)
535532
return fmt.Errorf("failed to store cache entry: %w", err)
@@ -603,7 +600,6 @@ func (c *RedisCache) FindSimilarWithThreshold(model string, query string, thresh
603600
},
604601
},
605602
).Result()
606-
607603
if err != nil {
608604
logging.Infof("RedisCache.FindSimilarWithThreshold: search failed: %v", err)
609605
atomic.AddInt64(&c.missCount, 1)

0 commit comments

Comments
 (0)