Skip to content

Commit dc855fd

Browse files
committed
fix: Example takes in req
1 parent 9b1d3a7 commit dc855fd

File tree

1 file changed

+2
-6
lines changed
  • v3/integrations/nroci/example/oci-go-sdk

1 file changed

+2
-6
lines changed

v3/integrations/nroci/example/oci-go-sdk/main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,13 @@ func main() {
6565
Statement: &statement,
6666
},
6767
}
68-
putRes, err := configWrapper.UpdateRow(ctx, &nroci.NoSQLClientRequestWrapper[nosql.UpdateRowRequest]{
69-
ClientRequest: putReq,
70-
})
68+
putRes, err := configWrapper.UpdateRow(ctx, putReq)
7169
if err != nil {
7270
panic(err)
7371
}
7472
fmt.Printf("UpdateRow row: %v\nresult\n", putRes)
7573

76-
queryRes, err := configWrapper.Query(ctx, &nroci.NoSQLClientRequestWrapper[nosql.QueryRequest]{
77-
ClientRequest: queryReq,
78-
})
74+
queryRes, err := configWrapper.Query(ctx, queryReq)
7975

8076
if err != nil {
8177
panic(err)

0 commit comments

Comments
 (0)