File tree Expand file tree Collapse file tree 3 files changed +5
-24
lines changed Expand file tree Collapse file tree 3 files changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ mod http_client;
39
39
pub use http_client:: StorageHttpClient ;
40
40
41
41
mod operator;
42
- pub use operator:: build_operator;
43
42
pub use operator:: check_operator;
44
43
pub use operator:: init_operator;
45
44
pub use operator:: DataOperator ;
Original file line number Diff line number Diff line change @@ -146,10 +146,7 @@ pub(crate) fn init_operator_uncached(cfg: &StorageParams) -> Result<Operator> {
146
146
/// ```
147
147
///
148
148
/// Please balance the performance and compile time.
149
- pub fn build_operator < B : Builder > (
150
- builder : B ,
151
- cfg : Option < & StorageNetworkParams > ,
152
- ) -> Result < Operator > {
149
+ fn build_operator < B : Builder > ( builder : B , cfg : Option < & StorageNetworkParams > ) -> Result < Operator > {
153
150
let ob = Operator :: new ( builder) ?
154
151
// Timeout layer is required to be the first layer so that internal
155
152
// futures can be cancelled safely when the timeout is reached.
@@ -558,24 +555,8 @@ impl DataOperator {
558
555
Ok ( ( ) )
559
556
}
560
557
561
- /// Create a new data operator without check.
562
- pub fn try_new (
563
- conf : & StorageConfig ,
564
- spill_params : Option < StorageParams > ,
565
- ) -> databend_common_exception:: Result < DataOperator > {
566
- let operator = init_operator ( & conf. params ) ?;
567
- let spill_operator = spill_params. as_ref ( ) . map ( init_operator) . transpose ( ) ?;
568
-
569
- Ok ( DataOperator {
570
- operator,
571
- params : conf. params . clone ( ) ,
572
- spill_operator,
573
- spill_params,
574
- } )
575
- }
576
-
577
558
#[ async_backtrace:: framed]
578
- pub async fn try_create (
559
+ async fn try_create (
579
560
conf : & StorageConfig ,
580
561
spill_params : Option < StorageParams > ,
581
562
) -> databend_common_exception:: Result < DataOperator > {
You can’t perform that action at this time.
0 commit comments