upd(all): use factory.Database.MustGet over .Get

This commit is contained in:
Tit Petric
2018-07-17 18:23:02 +02:00
parent 8753c18e0b
commit 80f9e9b9bc
6 changed files with 19 additions and 84 deletions
-8
View File
@@ -13,14 +13,6 @@ import (
"github.com/titpetric/factory"
)
const (
defaultAddr = ":3000"
defaultDsn = "crust:crust@tcp(db1:3306)/crust?collation=utf8mb4_general_ci"
envVarKey_HTTP_ADDR = "CRM_HTTP_ADDR"
envVarKey_DB_DSN = "CRM_DB_DSN"
)
func handleError(err error, message string) {
if message == "" {
message = "Error making API call"