File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,12 @@ impl Index {
104
104
namespace : & str ,
105
105
records : & [ serde_json:: Value ] ,
106
106
) -> Result < ( ) , PineconeError > {
107
- let configuration = self . client . openapi_config . clone ( ) ;
108
-
109
- let client = self . client . openapi_config . client . clone ( ) ;
107
+ let configuration = & self . client . openapi_config ;
108
+ let client = & self . client . openapi_config . client ;
110
109
111
110
let uri_str = format ! (
112
111
"{}/records/namespaces/{namespace}/upsert" ,
113
- configuration . base_path ,
112
+ self . host ,
114
113
namespace = crate :: openapi:: apis:: urlencode( namespace)
115
114
) ;
116
115
let mut req_builder = client. request ( reqwest:: Method :: POST , uri_str. as_str ( ) ) ;
@@ -142,8 +141,6 @@ impl Index {
142
141
source : anyhow:: Error :: from ( e) ,
143
142
} ) ?;
144
143
145
- println ! ( "xxxxx request {:#?}" , req) ;
146
-
147
144
let resp = client
148
145
. execute ( req)
149
146
. await
You can’t perform that action at this time.
0 commit comments