Skip to content

Commit

Permalink
modify insert and select in kvtable
Browse files Browse the repository at this point in the history
  • Loading branch information
subowei committed Sep 13, 2023
1 parent 16bd566 commit dde80ba
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions cmd/commandline/kvTable.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ For more information please refer:
fmt.Printf("set failed, crud.NewCRUDService err: %v\n", err)
return
}
_, err = crudService.OpenTable(tableName)
if err != nil {
fmt.Printf("set failed,crudService.OpenTable err: %v\n", err)
return
}
result, err := crudService.Insert(&entry)
result, err := crudService.Insert(tableName, entry)
if err != nil {
fmt.Printf("set failed, crudService.Insert err: %v\n", err)
return
Expand Down Expand Up @@ -123,12 +118,7 @@ For more information please refer:
fmt.Printf("get failed, consensus.NewConsensusService err: %v\n", err)
return
}
_, err = crudService.OpenTable(tableName)
if err != nil {
fmt.Printf("get failed,crudService.OpenTable err: %v\n", err)
return
}
result, err := crudService.Select(key)
result, err := crudService.Select0(tableName, key)
if err != nil {
fmt.Printf("get failed, consensusService.AddObserver err: %v\n", err)
return
Expand Down

0 comments on commit dde80ba

Please sign in to comment.