Skip to content

Commit

Permalink
remove-close
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Dec 12, 2024
1 parent 8696541 commit 89c6cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkg/config/tlscfg/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"crypto/x509"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"time"
Expand Down Expand Up @@ -185,10 +184,10 @@ func addCertToPool(caPath string, certPool *x509.CertPool) error {
return nil
}

var _ io.Closer = (*Options)(nil)
// var _ io.Closer = (*Options)(nil)

// Close shuts down the embedded certificate watcher.
func (o *Options) Close() error {
func (o *Options) close() error {
if o.certWatcher != nil {
return o.certWatcher.Close()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/tlscfg/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func TestOptionsToConfig(t *testing.T) {
assert.Equal(t, &c, cert)
}
}
require.NoError(t, test.options.Close())
require.NoError(t, test.options.close())
})
}
}
Expand Down

0 comments on commit 89c6cf9

Please sign in to comment.