File tree 4 files changed +6
-10
lines changed 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ static INVALID_POLICY: once_cell::sync::OnceCell<ServerPolicy> = once_cell::sync
34
34
impl < S > Api < S >
35
35
where
36
36
S : tonic:: client:: GrpcService < tonic:: body:: BoxBody , Error = Error > + Clone ,
37
- S :: ResponseBody :
38
- http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Default + Send + ' static ,
37
+ S :: ResponseBody : http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Send + ' static ,
39
38
{
40
39
pub ( super ) fn new (
41
40
workload : Arc < str > ,
@@ -60,8 +59,7 @@ impl<S> Service<u16> for Api<S>
60
59
where
61
60
S : tonic:: client:: GrpcService < tonic:: body:: BoxBody , Error = Error > ,
62
61
S : Clone + Send + Sync + ' static ,
63
- S :: ResponseBody :
64
- http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Default + Send + ' static ,
62
+ S :: ResponseBody : http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Send + ' static ,
65
63
S :: Future : Send + ' static ,
66
64
{
67
65
type Response =
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ impl Config {
43
43
C : tonic:: client:: GrpcService < tonic:: body:: BoxBody , Error = Error > ,
44
44
C : Clone + Unpin + Send + Sync + ' static ,
45
45
C :: ResponseBody : http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > ,
46
- C :: ResponseBody : Default + Send + ' static ,
46
+ C :: ResponseBody : Send + ' static ,
47
47
C :: Future : Send ,
48
48
{
49
49
match self {
Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ impl<S> Store<S> {
77
77
S : tonic:: client:: GrpcService < tonic:: body:: BoxBody , Error = Error > ,
78
78
S : Clone + Send + Sync + ' static ,
79
79
S :: Future : Send ,
80
- S :: ResponseBody :
81
- http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Default + Send + ' static ,
80
+ S :: ResponseBody : http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Send + ' static ,
82
81
{
83
82
let opaque_default = Self :: make_opaque ( default. clone ( ) ) ;
84
83
// The initial set of policies never expire from the cache.
@@ -142,8 +141,7 @@ where
142
141
S : tonic:: client:: GrpcService < tonic:: body:: BoxBody , Error = Error > ,
143
142
S : Clone + Send + Sync + ' static ,
144
143
S :: Future : Send ,
145
- S :: ResponseBody :
146
- http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Default + Send + ' static ,
144
+ S :: ResponseBody : http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > + Send + ' static ,
147
145
{
148
146
fn get_policy ( & self , dst : OrigDstAddr ) -> AllowPolicy {
149
147
// Lookup the policy for the target port in the cache. If it doesn't
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl Inbound<()> {
30
30
C : tonic:: client:: GrpcService < tonic:: body:: BoxBody , Error = Error > ,
31
31
C : Clone + Unpin + Send + Sync + ' static ,
32
32
C :: ResponseBody : http:: Body < Data = tonic:: codegen:: Bytes , Error = Error > ,
33
- C :: ResponseBody : Default + Send + ' static ,
33
+ C :: ResponseBody : Send + ' static ,
34
34
C :: Future : Send ,
35
35
{
36
36
self . config
You can’t perform that action at this time.
0 commit comments