From 1b344d5013cccedfc7827244a7acf6c0a4b8b45b Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 13 Feb 2019 15:15:59 -0800 Subject: [PATCH] Add comment about fsnotify --- autocert/examples/hello-mtls/go-grpc/client/client.go | 2 ++ autocert/examples/hello-mtls/go-grpc/server/server.go | 2 ++ autocert/examples/hello-mtls/go/client/client.go | 2 ++ autocert/examples/hello-mtls/go/server/server.go | 2 ++ 4 files changed, 8 insertions(+) diff --git a/autocert/examples/hello-mtls/go-grpc/client/client.go b/autocert/examples/hello-mtls/go-grpc/client/client.go index 33fc6273..00a308ec 100644 --- a/autocert/examples/hello-mtls/go-grpc/client/client.go +++ b/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) diff --git a/autocert/examples/hello-mtls/go-grpc/server/server.go b/autocert/examples/hello-mtls/go-grpc/server/server.go index 4c4bed38..c233d010 100644 --- a/autocert/examples/hello-mtls/go-grpc/server/server.go +++ b/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) diff --git a/autocert/examples/hello-mtls/go/client/client.go b/autocert/examples/hello-mtls/go/client/client.go index 0d2da881..98389cab 100644 --- a/autocert/examples/hello-mtls/go/client/client.go +++ b/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) diff --git a/autocert/examples/hello-mtls/go/server/server.go b/autocert/examples/hello-mtls/go/server/server.go index 6413b796..6888da26 100644 --- a/autocert/examples/hello-mtls/go/server/server.go +++ b/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)