Skip to content

Commit

Permalink
Upgrade cache in module trace file
Browse files Browse the repository at this point in the history
  • Loading branch information
nozim committed Sep 9, 2023
1 parent 6104d0c commit 576148c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Tracer struct {
tracer trace.Tracer
shutdown func(context.Context) error
log zerolog.Logger
spanCache *lru.Cache
spanCache *lru.Cache[flow.Identifier, trace.Span]
chainID string
sensitivity uint
}
Expand Down Expand Up @@ -88,7 +88,7 @@ func NewTracer(
log.Debug().Err(err).Msg("tracing error")
}))

spanCache, err := lru.New(int(DefaultEntityCacheSize))
spanCache, err := lru.New[flow.Identifier, trace.Span](int(DefaultEntityCacheSize))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 576148c

Please sign in to comment.