aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-01 21:53:09 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-01 21:53:09 +0000
commitaf4dc7f3f05fad8fe13edf0173a6dee5e4148bd3 (patch)
tree100caca9cb134ab00f73c60c0ed5bb4adabd12fc /main.go
parent2969956f7eac5fb18fe3bcad24bdc08ee63497af (diff)
downloadcommunique-af4dc7f3f05fad8fe13edf0173a6dee5e4148bd3.tar.gz
rename server to router
Diffstat (limited to '')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index fa81264..35b5b80 100644
--- a/main.go
+++ b/main.go
@@ -56,9 +56,9 @@ func main() {
// // External Http Server
writer := &zapio.Writer{Log: logger, Level: zap.DebugLevel}
defer writer.Close()
- server := http.NewServer(registry)
+ router := http.NewRouter(registry)
mainWg.Add(1)
- go server.Start(writer)
+ go router.Start(writer)
mainWg.Wait()
}