Browse Source

Update config

Dmitriy Gnatenko 2 months ago
parent
commit
d30632c6a3
1 changed files with 2 additions and 3 deletions
  1. 2 3
      cmd/app/main.go

+ 2 - 3
cmd/app/main.go

@@ -1,8 +1,8 @@
 package main
 package main
 
 
 import (
 import (
+	"fmt"
 	"log"
 	"log"
-	"strconv"
 	"time"
 	"time"
 
 
 	_ "github.com/lib/pq"
 	_ "github.com/lib/pq"
@@ -27,8 +27,7 @@ func main() {
 		log.Fatal(err)
 		log.Fatal(err)
 	}
 	}
 
 
-	port := strconv.FormatUint(uint64(serviceProvider.ConfigService().AppPort()), 10)
-	if err = fiberApp.Listen(":" + port); err != nil {
+	if err = fiberApp.Listen(fmt.Sprintf(":%d", serviceProvider.ConfigService().AppPort())); err != nil {
 		log.Fatal(err)
 		log.Fatal(err)
 	}
 	}
 }
 }