Fix perf issue with inflections

This commit is contained in:
Vikram Rangnekar
2019-03-25 00:43:14 -04:00
parent 04f4eb0f02
commit 775d5496cd
7 changed files with 28 additions and 63 deletions

View File

@ -11,7 +11,7 @@ import (
"github.com/dosco/super-graph/psql"
"github.com/dosco/super-graph/qcode"
"github.com/go-pg/pg"
"github.com/jinzhu/inflection"
"github.com/gobuffalo/flect"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
@ -66,7 +66,7 @@ func initConf() {
debug = conf.GetInt("debug_level")
for k, v := range conf.GetStringMapString("inflections") {
inflection.AddIrregular(k, v)
flect.AddPlural(k, v)
}
conf.SetDefault("host_port", "0.0.0.0:8080")