Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Remove unused cancellable context (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
nacx authored Feb 26, 2024
1 parent f27468b commit bef473d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ type (
// tlsConfigPool is a pool of TLS configurations.
// That reloads the trusted certificate authority when there are changes.
tlsConfigPool struct {
ctx context.Context
cancel context.CancelFunc
log telemetry.Logger
log telemetry.Logger

mu sync.RWMutex
configs map[string]*tls.Config
Expand All @@ -66,10 +64,7 @@ type (

// NewTLSConfigPool creates a new TLSConfigPool.
func NewTLSConfigPool(ctx context.Context) TLSConfigPool {
ctx, cancel := context.WithCancel(ctx)
return &tlsConfigPool{
ctx: ctx,
cancel: cancel,
log: Logger(Config),
configs: make(map[string]*tls.Config),
caWatcher: NewFileWatcher(ctx),
Expand Down

0 comments on commit bef473d

Please sign in to comment.