@@ -38,7 +38,7 @@ pub enum ChromaClientError {
3838}
3939
4040#[ derive( Debug ) ]
41- pub struct ChromaClient {
41+ pub struct ChromaHttpClient {
4242 base_url : reqwest:: Url ,
4343 client : reqwest:: Client ,
4444 retry_policy : ExponentialBuilder ,
@@ -49,9 +49,9 @@ pub struct ChromaClient {
4949 metrics : crate :: client:: metrics:: Metrics ,
5050}
5151
52- impl Clone for ChromaClient {
52+ impl Clone for ChromaHttpClient {
5353 fn clone ( & self ) -> Self {
54- ChromaClient {
54+ ChromaHttpClient {
5555 base_url : self . base_url . clone ( ) ,
5656 client : self . client . clone ( ) ,
5757 retry_policy : self . retry_policy ,
@@ -72,7 +72,7 @@ pub struct Database {
7272 name : String ,
7373}
7474
75- impl ChromaClient {
75+ impl ChromaHttpClient {
7676 pub fn new ( options : ChromaClientOptions ) -> Self {
7777 let mut headers = options. headers ( ) ;
7878 headers. append ( "user-agent" , USER_AGENT . try_into ( ) . unwrap ( ) ) ;
@@ -82,7 +82,7 @@ impl ChromaClient {
8282 . build ( )
8383 . expect ( "Failed to initialize TLS backend" ) ;
8484
85- ChromaClient {
85+ ChromaHttpClient {
8686 base_url : options. base_url . clone ( ) ,
8787 client,
8888 retry_policy : options. retry_options . into ( ) ,
@@ -547,10 +547,10 @@ mod tests {
547547
548548 async fn with_client < F , Fut > ( callback : F )
549549 where
550- F : FnOnce ( ChromaClient ) -> Fut ,
550+ F : FnOnce ( ChromaHttpClient ) -> Fut ,
551551 Fut : std:: future:: Future < Output = ( ) > ,
552552 {
553- let client = ChromaClient :: new ( CHROMA_CLIENT_OPTIONS . clone ( ) ) ;
553+ let client = ChromaHttpClient :: new ( CHROMA_CLIENT_OPTIONS . clone ( ) ) ;
554554
555555 // Create isolated database for test
556556 let database_name = format ! ( "test_db_{}" , uuid:: Uuid :: new_v4( ) ) ;
@@ -617,7 +617,7 @@ mod tests {
617617 } )
618618 . await ;
619619
620- let client = ChromaClient :: new ( ChromaClientOptions {
620+ let client = ChromaHttpClient :: new ( ChromaClientOptions {
621621 base_url : server. base_url ( ) . parse ( ) . unwrap ( ) ,
622622 retry_options : ChromaRetryOptions {
623623 max_retries : 3 ,
@@ -671,7 +671,7 @@ mod tests {
671671 } )
672672 . await ;
673673
674- let client = ChromaClient :: new ( ChromaClientOptions {
674+ let client = ChromaHttpClient :: new ( ChromaClientOptions {
675675 base_url : server. base_url ( ) . parse ( ) . unwrap ( ) ,
676676 retry_options : ChromaRetryOptions {
677677 max_retries : 2 ,
0 commit comments