chore: rename (#660)

pull/24376/head
Hu Ming 2021-01-15 01:49:03 +08:00 committed by GitHub
parent d4ac68d9f5
commit 99605b27d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -1730,7 +1730,7 @@ mod tests {
.expect("Created field_columns plan successfully");
let fieldlists = executor
.to_fieldlist(plan)
.to_field_list(plan)
.await
.expect("Running fieldlist plan");
assert!(fieldlists.fields.is_empty());
@ -1747,7 +1747,7 @@ mod tests {
.expect("Created field_columns plan successfully");
let actual = executor
.to_fieldlist(plan)
.to_field_list(plan)
.await
.expect("Running fieldlist plan");
@ -1811,7 +1811,7 @@ mod tests {
.expect("Created field_columns plan successfully");
let actual = executor
.to_fieldlist(plan)
.to_field_list(plan)
.await
.expect("Running fieldlist plan");

View File

@ -253,7 +253,7 @@ impl Executor {
}
/// Executes the embedded plans, each as separate tasks, sending
/// the resulting `SeriesSet`s one by one to the `tx` chanel.
/// the resulting `SeriesSet`s one by one to the `tx` channel.
///
/// The SeriesSets are guaranteed to come back ordered by table_name
///
@ -344,7 +344,7 @@ impl Executor {
}
/// Executes `plan` and return the resulting FieldList
pub async fn to_fieldlist(&self, plan: FieldListPlan) -> Result<FieldList> {
pub async fn to_field_list(&self, plan: FieldListPlan) -> Result<FieldList> {
match plan {
FieldListPlan::Known(res) => res,
FieldListPlan::Plans(plans) => {

View File

@ -1120,7 +1120,7 @@ where
let executor = db_store.executor();
let fieldlist_plan =
let field_list_plan =
db.field_column_names(predicate)
.await
.map_err(|e| Error::ListingFields {
@ -1128,16 +1128,16 @@ where
source: Box::new(e),
})?;
let fieldlist =
let field_list =
executor
.to_fieldlist(fieldlist_plan)
.to_field_list(field_list_plan)
.await
.map_err(|e| Error::ListingFields {
db_name: db_name.to_string(),
source: Box::new(e),
})?;
Ok(fieldlist)
Ok(field_list)
}
/// Instantiate a server listening on the specified address