Skip to content

Commit

Permalink
rebased to main
Browse files Browse the repository at this point in the history
  • Loading branch information
ericapywang committed Jun 10, 2024
1 parent bba2160 commit 6998156
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 592 deletions.
2 changes: 1 addition & 1 deletion pinecone_sdk/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ impl Config {
source_tag,
}
}
}
}
222 changes: 0 additions & 222 deletions pinecone_sdk/src/control/create_index.rs

This file was deleted.

5 changes: 4 additions & 1 deletion pinecone_sdk/src/control/list_indexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ impl Pinecone {
#[cfg(test)]
mod tests {
use super::*;
use crate::config::Config;

Check warning on line 18 in pinecone_sdk/src/control/list_indexes.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `crate::config::Config`

Check warning on line 18 in pinecone_sdk/src/control/list_indexes.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `crate::config::Config`
use crate::control::list_indexes::models::index_model::Metric;
use mockito::mock;
use openapi::apis::configuration::ApiKey;

Check warning on line 21 in pinecone_sdk/src/control/list_indexes.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `openapi::apis::configuration::ApiKey`

Check warning on line 21 in pinecone_sdk/src/control/list_indexes.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `openapi::apis::configuration::ApiKey`
use openapi::apis::configuration::Configuration;

Check warning on line 22 in pinecone_sdk/src/control/list_indexes.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `openapi::apis::configuration::Configuration`

Check warning on line 22 in pinecone_sdk/src/control/list_indexes.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `openapi::apis::configuration::Configuration`
use openapi::models::IndexList;
use openapi::models::IndexModel;
use tokio;
Expand Down Expand Up @@ -95,4 +98,4 @@ mod tests {
Err(err) => panic!("Expected Ok, got Err: {:?}", err),
}
}
}
}
5 changes: 3 additions & 2 deletions pinecone_sdk/src/control/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pub mod create_index;
pub mod list_indexes;
mod list_indexes;

pub use list_indexes::*;

Check warning on line 3 in pinecone_sdk/src/control/mod.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `list_indexes::*`

Check warning on line 3 in pinecone_sdk/src/control/mod.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `list_indexes::*`

Check warning on line 3 in pinecone_sdk/src/control/mod.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `list_indexes::*`

Check warning on line 3 in pinecone_sdk/src/control/mod.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `list_indexes::*`

Check warning on line 3 in pinecone_sdk/src/control/mod.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `list_indexes::*`

Check warning on line 3 in pinecone_sdk/src/control/mod.rs

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, stable)

unused import: `list_indexes::*`
3 changes: 1 addition & 2 deletions pinecone_sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub mod config;
pub mod control;
pub mod pinecone;
pub mod utils;
pub mod models;
pub mod utils;
Loading

0 comments on commit 6998156

Please sign in to comment.