Skip to content

Commit

Permalink
(fix) Shadow declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
manojks1999 committed Feb 20, 2025
1 parent af89040 commit a5ef458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/managers/pluginmanager/pluginmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ func (p *PluginManager) Start(ctx context.Context) error {
_, isPacketParserEnabled := p.plugins["packetparser"]
// run conntrack GC only if packetparser is enabled
if isPacketParserEnabled {
ct, err := conntrack.New()
if err != nil {
return errors.Wrap(err, "failed to get conntrack instance")
ct, connErr := conntrack.New()
if connErr != nil {
return errors.Wrap(connErr, "failed to get conntrack instance")
}
g.Go(func() error {
return errors.Wrapf(ct.Run(ctx), "failed to run conntrack GC")
Expand Down

0 comments on commit a5ef458

Please sign in to comment.