featurebase/server
Matthew Jaffee 3f303d1098
remove global defaults from config.go
these were occaisionally referenced elsewhere in the codebase - in all but one
case, there were workarounds that are actually better I think.

In the one case there wasn't I created a single top level DefaultConfig object
which is instantiated with all the default values and can be referred to if
necessary.

There was a bug in fragment.go with the way MaxWritesPerRequest was treated if
it was 0. Elsewhere, 0 meant no limit, but here, it would have caused a division
by 0.

Changed the default metrics provider from "nop" to "none", although "nop" will
still work. Previously, any value other than "statsd" or "expvar" was treated as
"nop", but I've changed this behavior to return an error if an invalid string is
provided. I think this is better behavior, because in the case that someone
bothered to change the default, they were probably interested in actually
getting stats, and might be annoyed when it silently failed.
2018-04-12 19:52:48 -05:00
..
cluster_test.go Merge branch 'master' into 1151-http-refactor 2018-04-10 08:10:25 -05:00
default.go Add license notice to two files 2018-02-06 14:15:37 -06:00
release.go Add license notice to two files 2018-02-06 14:15:37 -06:00
server.go remove global defaults from config.go 2018-04-12 19:52:48 -05:00
server_test.go test the inverseSlice fix 2018-04-11 12:51:26 -05:00