File tree 1 file changed +2
-2
lines changed
examples/features/advancedtls/client
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const message string = "Hello"
52
52
func makeRootProvider (credsDirectory string ) certprovider.Provider {
53
53
rootOptions := pemfile.Options {
54
54
RootFile : filepath .Join (credsDirectory , "ca_cert.pem" ),
55
- RefreshDuration : credRefreshInterval ,
55
+ RefreshDuration : pemfile. Duration { Duration : credRefreshInterval } ,
56
56
}
57
57
rootProvider , err := pemfile .NewProvider (rootOptions )
58
58
if err != nil {
@@ -72,7 +72,7 @@ func makeIdentityProvider(revoked bool, credsDirectory string) certprovider.Prov
72
72
identityOptions := pemfile.Options {
73
73
CertFile : certFile ,
74
74
KeyFile : filepath .Join (credsDirectory , "client_key.pem" ),
75
- RefreshDuration : credRefreshInterval ,
75
+ RefreshDuration : pemfile. Duration { Duration : credRefreshInterval } ,
76
76
}
77
77
identityProvider , err := pemfile .NewProvider (identityOptions )
78
78
if err != nil {
You can’t perform that action at this time.
0 commit comments