Skip to content

Commit

Permalink
TMP Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Oct 9, 2023
1 parent e6bec1f commit 3f63fc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions service/cachemdw/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func (c *ServiceCache) GetCachedQueryResponse(

func (c *ServiceCache) CacheQueryResponse(
ctx context.Context,
chainID string,
req *decode.EVMRPCRequestEnvelope,
chainID string,
response []byte,
) error {
if !IsCacheable(ctx, c.evmClient, req) {
Expand Down Expand Up @@ -111,8 +111,8 @@ func (c *ServiceCache) ValidateAndCacheQueryResponse(

if err := c.CacheQueryResponse(
ctx,
chainID,
decodedReq,
chainID,
body,
); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion service/cachemdw/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestUnitTestCacheQueryResponse(t *testing.T) {
require.Equal(t, cache.ErrNotFound, err)
require.Empty(t, resp)

err = serviceCache.CacheQueryResponse(context.Background(), "1", &req, []byte("resp"))
err = serviceCache.CacheQueryResponse(context.Background(), &req, "1", []byte("resp"))
require.NoError(t, err)

resp, err = serviceCache.GetCachedQueryResponse(context.Background(), &req, "api.kava.io")
Expand Down

0 comments on commit 3f63fc5

Please sign in to comment.