mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Remove long query time from Server. That parameter is managed in the Cluster.
This commit is contained in:
parent
59f26ce585
commit
f822bb43e9
3 changed files with 1 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ import (
|
|||
// Server is global so that tests can control and verify it.
|
||||
var Server *server.Command
|
||||
|
||||
// NewServeCmd create a pilosa server and run it with command line flags
|
||||
// NewServeCmd creates a pilosa server and runs it with command line flags.
|
||||
func NewServeCmd(stdin io.Reader, stdout, stderr io.Writer) *cobra.Command {
|
||||
Server = server.NewCommand(stdin, stdout, stderr)
|
||||
serveCmd := &cobra.Command{
|
||||
|
|
|
|||
|
|
@ -64,9 +64,6 @@ type Server struct {
|
|||
PollingInterval time.Duration
|
||||
MetricInterval time.Duration
|
||||
|
||||
// Threshold for logging long queries
|
||||
LongQueryTime time.Duration
|
||||
|
||||
// Misc options.
|
||||
MaxWritesPerRequest int
|
||||
|
||||
|
|
|
|||
|
|
@ -198,7 +198,6 @@ func (m *Command) SetupServer() error {
|
|||
|
||||
// Set configuration options.
|
||||
m.Server.AntiEntropyInterval = time.Duration(m.Config.AntiEntropy.Interval)
|
||||
m.Server.Cluster.LongQueryTime = time.Duration(m.Config.Cluster.LongQueryTime)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue