Skip to content

Commit

Permalink
Rename router to avoid name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinguidee committed Sep 10, 2023
1 parent 67a61f7 commit 308ee92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ func main() {
return
}

router := router.NewRouter(types.About{
r := router.NewRouter(types.About{
Version: version,
Commit: commit,
Date: date,

OS: runtime.GOOS,
Arch: runtime.GOARCH,
})
defer router.Stop()
defer r.Stop()

// Logs
url := fmt.Sprintf("http://%s", config.Current.Host)
Expand All @@ -58,7 +58,7 @@ func main() {
vlog.String("url", url),
)

router.Start(fmt.Sprintf(":%s", config.Current.Port))
r.Start(fmt.Sprintf(":%s", config.Current.Port))
}

func parseArgs() {
Expand Down

0 comments on commit 308ee92

Please sign in to comment.