Skip to content

Commit e071c84

Browse files
committed
Add missing cancel
1 parent 64ac44f commit e071c84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

providers/multi/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func (p *Provider) AddProvider(ctx context.Context, prefix string, provider mult
100100
_, ok := p.providers[prefix]
101101
p.providerLock.Unlock()
102102
if ok {
103+
cancel()
103104
return fmt.Errorf("provider already exists for prefix %q", prefix)
104105
}
105106

0 commit comments

Comments
 (0)