mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 16:45:55 +00:00
Unexport server.NewStatsClient
This commit is contained in:
parent
94e633b7eb
commit
167e41787f
1 changed files with 3 additions and 3 deletions
|
|
@ -225,7 +225,7 @@ func (m *Command) SetupServer() error {
|
|||
diagnosticsInterval = time.Duration(defaultDiagnosticsInterval)
|
||||
}
|
||||
|
||||
statsClient, err := NewStatsClient(m.Config.Metric.Service, m.Config.Metric.Host)
|
||||
statsClient, err := newStatsClient(m.Config.Metric.Service, m.Config.Metric.Host)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "new stats client")
|
||||
}
|
||||
|
|
@ -351,8 +351,8 @@ func (m *Command) Close() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// NewStatsClient creates a stats client from the config
|
||||
func NewStatsClient(name string, host string) (pilosa.StatsClient, error) {
|
||||
// newStatsClient creates a stats client from the config
|
||||
func newStatsClient(name string, host string) (pilosa.StatsClient, error) {
|
||||
switch name {
|
||||
case "expvar":
|
||||
return pilosa.NewExpvarStatsClient(), nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue