Skip to content

Commit

Permalink
Lint fix on function name
Browse files Browse the repository at this point in the history
  • Loading branch information
xllora committed Mar 29, 2016
1 parent abb61ac commit eb14d31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tools/benchmark/batteries/bql.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func BQLTreeGraphWalking(ctx context.Context, st storage.Store, chanSize int) ([
},
F: func() error {
query := fmt.Sprintf(bql, gID)
_, err := run.RunBQL(ctx, query, st, chanSize)
_, err := run.BQL(ctx, query, st, chanSize)
return err
},
TearDown: func() error {
Expand Down Expand Up @@ -370,7 +370,7 @@ func BQLRandomGraphWalking(ctx context.Context, st storage.Store, chanSize int)
},
F: func() error {
query := fmt.Sprintf(bql, gID)
_, err := run.RunBQL(ctx, query, st, chanSize)
_, err := run.BQL(ctx, query, st, chanSize)
return err
},
TearDown: func() error {
Expand Down
6 changes: 3 additions & 3 deletions tools/vcli/bw/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func runCommand(ctx context.Context, cmd *command.Command, args []string, store
fmt.Printf("Processing file %s\n\n", args[len(args)-1])
for idx, stm := range lines {
fmt.Printf("Processing statement (%d/%d):\n%s\n\n", idx+1, len(lines), stm)
tbl, err := RunBQL(ctx, stm, store, chanSize)
tbl, err := BQL(ctx, stm, store, chanSize)
if err != nil {
fmt.Printf("[FAIL] %v\n\n", err)
continue
Expand All @@ -78,8 +78,8 @@ func runCommand(ctx context.Context, cmd *command.Command, args []string, store
return 0
}

// RunBQL attemps to excecute the provided query against the given store.
func RunBQL(ctx context.Context, bql string, s storage.Store, chanSize int) (*table.Table, error) {
// BQL attemps to excecute the provided query against the given store.
func BQL(ctx context.Context, bql string, s storage.Store, chanSize int) (*table.Table, error) {
p, err := grammar.NewParser(grammar.SemanticBQL())
if err != nil {
return nil, fmt.Errorf("[ERROR] Failed to initilize a valid BQL parser")
Expand Down

0 comments on commit eb14d31

Please sign in to comment.