2525use core:: panic;
2626use std:: {
2727 any:: Any ,
28- collections:: HashMap ,
2928 error:: Error ,
30- fmt:: Display ,
3129 mem,
32- ops:: Add ,
3330 str:: FromStr ,
34- sync:: { Arc , Mutex , Weak } ,
31+ sync:: { Arc , Mutex } ,
3532 time:: { Duration , Instant } ,
3633 vec,
3734} ;
3835
39- use tokio:: sync:: { mpsc, oneshot , watch, Notify } ;
36+ use tokio:: sync:: { mpsc, watch, Notify } ;
4037
4138use serde_json:: json;
42- use tonic:: async_trait;
4339use url:: Url ; // NOTE: http::Uri requires non-empty authority portion of URI
4440
4541use crate :: attributes:: Attributes ;
@@ -48,25 +44,20 @@ use crate::service::{Request, Response, Service};
4844use crate :: { client:: ConnectivityState , rt:: Runtime } ;
4945use crate :: { credentials:: Credentials , rt:: default_runtime} ;
5046
47+ use super :: name_resolution:: { self , global_registry, Address , ResolverUpdate } ;
5148use super :: service_config:: ServiceConfig ;
5249use super :: transport:: { TransportRegistry , GLOBAL_TRANSPORT_REGISTRY } ;
5350use super :: {
5451 load_balancing:: {
55- self , pick_first, ExternalSubchannel , LbPolicy , LbPolicyBuilder , LbPolicyOptions ,
56- LbPolicyRegistry , LbState , ParsedJsonLbConfig , PickResult , Picker , Subchannel ,
57- SubchannelState , WorkScheduler , GLOBAL_LB_REGISTRY ,
52+ self , pick_first, ExternalSubchannel , LbPolicy , LbPolicyBuilder , LbPolicyOptions , LbState ,
53+ ParsedJsonLbConfig , PickResult , Picker , Subchannel , SubchannelState , WorkScheduler ,
54+ GLOBAL_LB_REGISTRY ,
5855 } ,
5956 subchannel:: {
6057 InternalSubchannel , InternalSubchannelPool , NopBackoff , SubchannelKey ,
6158 SubchannelStateWatcher ,
6259 } ,
6360} ;
64- use super :: {
65- name_resolution:: {
66- self , global_registry, Address , ResolverBuilder , ResolverOptions , ResolverUpdate ,
67- } ,
68- subchannel,
69- } ;
7061
7162#[ non_exhaustive]
7263pub struct ChannelOptions {
0 commit comments