Skip to content

Commit

Permalink
chore: Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebruijn committed Aug 28, 2024
1 parent 1ae4704 commit 47dd389
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func main() {
shutdown := make(chan os.Signal, 1)
signal.Notify(shutdown, syscall.SIGINT, syscall.SIGTERM)

switch os.Args[1] {
action := os.Args[1]

switch action {
case "serve":
if err := httpServer(logger, cfg, shutdown); err != nil {
logger.Error("startup", "msg", err)
Expand Down

0 comments on commit 47dd389

Please sign in to comment.