Skip to content

Commit

Permalink
refactor: optimize certifyCache Get function (#2160)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhou Hao <[email protected]>
  • Loading branch information
zhouhao3 authored and gaius-qi committed Jun 28, 2023
1 parent f1f9f97 commit d1d8eb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/certify.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func (c *certifyCache) Get(ctx context.Context, key string) (cert *tls.Certifica
for i, cache := range c.caches {
if cert, err = cache.Get(ctx, key); err == nil {
foundCacheIdx = i
break
}
}

Expand Down

0 comments on commit d1d8eb4

Please sign in to comment.