mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
few more json fixes
This commit is contained in:
parent
6bb0d21e65
commit
c720ddc28e
3 changed files with 7 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ package bench
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pilosa/pilosa"
|
||||
)
|
||||
|
||||
|
|
@ -22,7 +23,7 @@ func roundRobinClient(hosts []string, agentNum int) (*pilosa.Client, error) {
|
|||
// provides the Init method, a ClientType argument and a cli internal variable.
|
||||
type HasClient struct {
|
||||
cli *pilosa.Client
|
||||
ClientType string
|
||||
ClientType string `json:"client-type"`
|
||||
}
|
||||
|
||||
// Init for HasClient looks at the ClientType field and creates a pilosa client
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ type Import struct {
|
|||
MaxBitsPerMap int64 `json:"max-bits-per-map"`
|
||||
AgentControls string `json:"agent-controls"`
|
||||
Seed int64 `json:"seed"`
|
||||
numbits int `json:""`
|
||||
numbits int
|
||||
|
||||
*pilosactl.ImportCommand
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ func NewSliceHeight(stdin io.Reader, stdout, stderr io.Writer) *SliceHeight {
|
|||
// a single slice on query time.
|
||||
type SliceHeight struct {
|
||||
MaxTime time.Duration `json:"max-time"`
|
||||
hosts []string `json:""`
|
||||
hosts []string
|
||||
|
||||
MinBitsPerMap int64 `json:"min-bits-per-map"`
|
||||
MaxBitsPerMap int64 `json:"max-bits-per-map"`
|
||||
|
|
@ -32,9 +32,9 @@ type SliceHeight struct {
|
|||
Database string `json:"database"`
|
||||
Frame string `json:"frame"`
|
||||
|
||||
Stdin io.Reader `json:""`
|
||||
Stdout io.Writer `json:""`
|
||||
Stderr io.Writer `json:""`
|
||||
Stdin io.Reader `json:"-"`
|
||||
Stdout io.Writer `json:"-"`
|
||||
Stderr io.Writer `json:"-"`
|
||||
}
|
||||
|
||||
func (b *SliceHeight) Usage() string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue