Skip to content

Commit

Permalink
test: client (#7)
Browse files Browse the repository at this point in the history
* client test

* client test done

* more test cases
  • Loading branch information
yuanbohan authored Jan 31, 2024
1 parent 9e6c4d7 commit 40b60ef
Show file tree
Hide file tree
Showing 20 changed files with 899 additions and 238 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"google.golang.org/grpc"

"github.com/GreptimeTeam/greptimedb-ingester-go/config"
"github.com/GreptimeTeam/greptimedb-ingester-go/insert"
"github.com/GreptimeTeam/greptimedb-ingester-go/request"
"github.com/GreptimeTeam/greptimedb-ingester-go/table"
)

Expand All @@ -45,7 +45,7 @@ func New(cfg *config.Config) (*Client, error) {
}

func (c *Client) Write(ctx context.Context, tables ...*table.Table) (*greptimepb.GreptimeResponse, error) {
req, err := insert.NewRowInsertsRequest(tables...).Build(c.cfg)
req, err := request.New(tables...).Build(c.cfg)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 40b60ef

Please sign in to comment.