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

Remove unused cancellable context #59

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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