good morning!!!!

Skip to content
Snippets Groups Projects
Commit 12473cea authored by Garet Halliday's avatar Garet Halliday
Browse files

don't print out conf

parent b2ca4f3b
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ import (
"strings"
"github.com/BurntSushi/toml"
"github.com/davecgh/go-spew/spew"
"gopkg.in/yaml.v3"
)
......@@ -91,7 +90,6 @@ func Load(path string) (*Global, error) {
}
}
}
spew.Println(g)
return &g, nil
}
......
......@@ -75,6 +75,10 @@ var DefaultRouter = func() *QueryRouter {
// based on the contents of the query.
// note that the user needs to be checked to see if they are allowed to access.
func (r *QueryRouter) InferRole(query string) (config.ServerRole, error) {
// if we don't want to parse queries, route them to primary
/*if !r.c.QueryParserEnabled {
return config.SERVERROLE_PRIMARY, nil
}*/
// parse the query
tokens := r.parser.Lex(query)
var role = config.SERVERROLE_REPLICA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment