@@ -34,7 +34,7 @@ impl Collection {
3434 ) -> CollectionResult < ( ) > {
3535 {
3636 let mut config = self . collection_config . write ( ) . await ;
37- config. params = config. params . update ( params_diff) ? ;
37+ config. params = config. params . update ( & params_diff) ;
3838 }
3939 self . collection_config . read ( ) . await . save ( & self . path ) ?;
4040 Ok ( ( ) )
@@ -51,7 +51,7 @@ impl Collection {
5151 ) -> CollectionResult < ( ) > {
5252 {
5353 let mut config = self . collection_config . write ( ) . await ;
54- config. hnsw_config = config. hnsw_config . update ( hnsw_config_diff) ? ;
54+ config. hnsw_config = config. hnsw_config . update ( & hnsw_config_diff) ;
5555 }
5656 self . collection_config . read ( ) . await . save ( & self . path ) ?;
5757 Ok ( ( ) )
@@ -104,7 +104,7 @@ impl Collection {
104104 ) -> CollectionResult < ( ) > {
105105 {
106106 let mut config = self . collection_config . write ( ) . await ;
107- config. optimizer_config = config. optimizer_config . update ( optimizer_config_diff) ? ;
107+ config. optimizer_config = config. optimizer_config . update ( & optimizer_config_diff) ;
108108 }
109109 self . collection_config . read ( ) . await . save ( & self . path ) ?;
110110 Ok ( ( ) )
@@ -186,7 +186,7 @@ impl Collection {
186186 {
187187 let mut config = self . collection_config . write ( ) . await ;
188188 if let Some ( current_config) = config. strict_mode_config . as_mut ( ) {
189- * current_config = current_config. update ( strict_mode_diff) ? ;
189+ * current_config = current_config. update ( & strict_mode_diff) ;
190190 } else {
191191 config. strict_mode_config = Some ( strict_mode_diff) ;
192192 }
0 commit comments