Skip to content

Commit 2537a1b

Browse files
committed
fix: convert to Duration type
1 parent 9757eee commit 2537a1b

File tree

1 file changed

+2
-2
lines changed
  • examples/features/advancedtls/client

1 file changed

+2
-2
lines changed

examples/features/advancedtls/client/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const message string = "Hello"
5252
func makeRootProvider(credsDirectory string) certprovider.Provider {
5353
rootOptions := pemfile.Options{
5454
RootFile: filepath.Join(credsDirectory, "ca_cert.pem"),
55-
RefreshDuration: credRefreshInterval,
55+
RefreshDuration: pemfile.Duration{Duration: credRefreshInterval},
5656
}
5757
rootProvider, err := pemfile.NewProvider(rootOptions)
5858
if err != nil {
@@ -72,7 +72,7 @@ func makeIdentityProvider(revoked bool, credsDirectory string) certprovider.Prov
7272
identityOptions := pemfile.Options{
7373
CertFile: certFile,
7474
KeyFile: filepath.Join(credsDirectory, "client_key.pem"),
75-
RefreshDuration: credRefreshInterval,
75+
RefreshDuration: pemfile.Duration{Duration: credRefreshInterval},
7676
}
7777
identityProvider, err := pemfile.NewProvider(identityOptions)
7878
if err != nil {

0 commit comments

Comments
 (0)