Mariano Cano 7 лет назад
Родитель
Сommit
1b344d5013

+ 2 - 0
autocert/examples/hello-mtls/go-grpc/client/client.go

@@ -122,6 +122,8 @@ func main() {
 	}
 
 	// Schedule periodic re-load of certificate
+	// A real implementation can use something like
+	// https://github.com/fsnotify/fsnotify
 	done := make(chan struct{})
 	go func() {
 		ticker := time.NewTicker(tickFrequency)

+ 2 - 0
autocert/examples/hello-mtls/go-grpc/server/server.go

@@ -115,6 +115,8 @@ func main() {
 	}
 
 	// Schedule periodic re-load of certificate
+	// A real implementation can use something like
+	// https://github.com/fsnotify/fsnotify
 	done := make(chan struct{})
 	go func() {
 		ticker := time.NewTicker(tickFrequency)

+ 2 - 0
autocert/examples/hello-mtls/go/client/client.go

@@ -101,6 +101,8 @@ func main() {
 	}
 
 	// Schedule periodic re-load of certificate
+	// A real implementation can use something like
+	// https://github.com/fsnotify/fsnotify
 	done := make(chan struct{})
 	go func() {
 		ticker := time.NewTicker(tickFrequency)

+ 2 - 0
autocert/examples/hello-mtls/go/server/server.go

@@ -106,6 +106,8 @@ func main() {
 	}
 
 	// Schedule periodic re-load of certificate
+	// A real implementation can use something like
+	// https://github.com/fsnotify/fsnotify
 	done := make(chan struct{})
 	go func() {
 		ticker := time.NewTicker(tickFrequency)