chore: coding style for quickstart (#1902)

This commit is contained in:
Kevin Wan
2022-05-13 23:10:55 +08:00
committed by GitHub
parent e567a0c718
commit c6e2b4a43a
3 changed files with 33 additions and 33 deletions

View File

@@ -15,10 +15,10 @@ func main() {
var c config.Config
conf.MustLoad(*configFile, &c)
ctx := svc.NewServiceContext(c)
server := rest.MustNewServer(c.RestConf)
defer server.Stop()
ctx := svc.NewServiceContext(c)
handler.RegisterHandlers(server, ctx)
fmt.Printf("Starting server at %s:%d...\n", c.Host, c.Port)