Use hash/fnv, add tests, fix request bug

This commit is contained in:
Ben Toogood
2020-05-23 11:34:44 +01:00
parent 7d7f4046e8
commit 496293afa1
3 changed files with 99 additions and 34 deletions

View File

@@ -253,8 +253,8 @@ func (c *cacheWrapper) Call(ctx context.Context, req client.Request, rsp interfa
}
// check to see if there is a response
if cRsp := cache.Get(ctx, &req); cRsp != nil {
rsp = cRsp
if r, ok := cache.Get(ctx, &req); ok {
rsp = r
return nil
}