From 4650433db39423dfcc392a02442342297115644e Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Wed, 3 Jul 2024 17:11:18 +0100 Subject: [PATCH] listen --- cmd/example-gcp/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/example-gcp/main.go b/cmd/example-gcp/main.go index ad7414600..fb458178d 100644 --- a/cmd/example-gcp/main.go +++ b/cmd/example-gcp/main.go @@ -64,4 +64,8 @@ func main() { // TODO: Add entry to log and return assigned index. }) + + if err := http.ListenAndServe(*listen, http.DefaultServeMux); err != nil { + klog.Exitf("ListenAndServe: %v", err) + } }