Commit b4f84d22 authored by Timothy Richard's avatar Timothy Richard
Browse files

remove panic

parent c4fe0348
......@@ -8,6 +8,9 @@ import (
"net/http"
"os"
"time"
"github.com/labstack/echo"
"github.com/ulule/limiter/drivers/store/redis"
"github.com/go-pkgz/expirable-cache"
)
var (
......@@ -75,9 +78,7 @@ func (m *RedisDB) DeleteCacheWhereLike(key string) error { // add * in the last
m.Cache.Delete(ctx, iter.Val())
foundedRecordCount++
}
if err := iter.Err(); err != nil {
panic(err)
}
return iter.Err()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment