Skip to content

Commit 0085612

Browse files
authored
Merge pull request #1335 from wprzytula/rename-prepared-iterator-config
pager: rename `Prepared(Iterator->Pager)Config`
2 parents 126091b + fb1f513 commit 0085612

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scylla/src/client/pager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct ReceivedPage {
6262
tracing_id: Option<Uuid>,
6363
}
6464

65-
pub(crate) struct PreparedIteratorConfig {
65+
pub(crate) struct PreparedPagerConfig {
6666
pub(crate) prepared: PreparedStatement,
6767
pub(crate) values: SerializedValues,
6868
pub(crate) execution_profile: Arc<ExecutionProfileInner>,
@@ -763,7 +763,7 @@ impl QueryPager {
763763
}
764764

765765
pub(crate) async fn new_for_prepared_statement(
766-
config: PreparedIteratorConfig,
766+
config: PreparedPagerConfig,
767767
) -> Result<Self, NextPageError> {
768768
let (sender, receiver) = mpsc::channel::<Result<ReceivedPage, NextPageError>>(1);
769769

scylla/src/client/session.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! It manages all connections to the cluster and allows to execute CQL requests.
33
44
use super::execution_profile::{ExecutionProfile, ExecutionProfileHandle, ExecutionProfileInner};
5-
use super::pager::{PreparedIteratorConfig, QueryPager};
5+
use super::pager::{PreparedPagerConfig, QueryPager};
66
use super::{Compression, PoolSize, SelfIdentity, WriteCoalescingDelay};
77
use crate::authentication::AuthenticatorProvider;
88
#[cfg(feature = "unstable-cloud")]
@@ -1183,7 +1183,7 @@ impl Session {
11831183
// we fully prepare a statement beforehand.
11841184
let prepared = self.prepare(statement).await?;
11851185
let values = prepared.serialize_values(&values)?;
1186-
QueryPager::new_for_prepared_statement(PreparedIteratorConfig {
1186+
QueryPager::new_for_prepared_statement(PreparedPagerConfig {
11871187
prepared,
11881188
values,
11891189
execution_profile,
@@ -1442,7 +1442,7 @@ impl Session {
14421442
.unwrap_or_else(|| self.get_default_execution_profile_handle())
14431443
.access();
14441444

1445-
QueryPager::new_for_prepared_statement(PreparedIteratorConfig {
1445+
QueryPager::new_for_prepared_statement(PreparedPagerConfig {
14461446
prepared,
14471447
values: serialized_values,
14481448
execution_profile,

0 commit comments

Comments
 (0)