File tree 4 files changed +7
-7
lines changed
raft-kv-memstore-generic-snapshot-data/src
raft-kv-memstore-opendal-snapshot-data/src
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl RaftNetwork<TypeConfig> for Connection {
55
55
& mut self ,
56
56
vote : Vote < NodeId > ,
57
57
snapshot : Snapshot < TypeConfig > ,
58
- _cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
58
+ _cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
59
59
_option : RPCOption ,
60
60
) -> Result < SnapshotResponse < NodeId > , typ:: StreamingError < typ:: Fatal > > {
61
61
let resp = self
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl RaftNetwork<TypeConfig> for Connection {
55
55
& mut self ,
56
56
vote : Vote < NodeId > ,
57
57
snapshot : Snapshot < TypeConfig > ,
58
- _cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
58
+ _cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
59
59
_option : RPCOption ,
60
60
) -> Result < SnapshotResponse < NodeId > , typ:: StreamingError < typ:: Fatal > > {
61
61
let resp = self
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ where C: RaftTypeConfig
94
94
& mut self ,
95
95
vote : Vote < C :: NodeId > ,
96
96
snapshot : Snapshot < C > ,
97
- cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
97
+ cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
98
98
option : RPCOption ,
99
99
) -> Result < SnapshotResponse < C :: NodeId > , StreamingError < C , Fatal < C :: NodeId > > > ;
100
100
@@ -120,7 +120,7 @@ where C: RaftTypeConfig
120
120
& mut self ,
121
121
vote : Vote < C :: NodeId > ,
122
122
snapshot : Snapshot < C > ,
123
- cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
123
+ cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
124
124
option : RPCOption ,
125
125
) -> Result < SnapshotResponse < C :: NodeId > , StreamingError < C , Fatal < C :: NodeId > > > {
126
126
use crate :: network:: snapshot_transport:: Chunked ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ pub trait SnapshotTransport<C: RaftTypeConfig> {
54
54
net : & mut Net ,
55
55
vote : Vote < C :: NodeId > ,
56
56
snapshot : Snapshot < C > ,
57
- cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
57
+ cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
58
58
option : RPCOption ,
59
59
) -> Result < SnapshotResponse < C :: NodeId > , StreamingError < C , Fatal < C :: NodeId > > >
60
60
where
@@ -103,7 +103,7 @@ where C::SnapshotData: tokio::io::AsyncRead + tokio::io::AsyncWrite + tokio::io:
103
103
net : & mut Net ,
104
104
vote : Vote < C :: NodeId > ,
105
105
mut snapshot : Snapshot < C > ,
106
- mut cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
106
+ mut cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
107
107
option : RPCOption ,
108
108
) -> Result < SnapshotResponse < C :: NodeId > , StreamingError < C , Fatal < C :: NodeId > > >
109
109
where
@@ -410,7 +410,7 @@ mod tests {
410
410
& mut self ,
411
411
_vote : Vote < C :: NodeId > ,
412
412
_snapshot : Snapshot < C > ,
413
- _cancel : impl Future < Output = ReplicationClosed > + OptionalSend ,
413
+ _cancel : impl Future < Output = ReplicationClosed > + OptionalSend + ' static ,
414
414
_option : RPCOption ,
415
415
) -> Result < SnapshotResponse < C :: NodeId > , StreamingError < C , Fatal < C :: NodeId > > > {
416
416
unimplemented ! ( )
You can’t perform that action at this time.
0 commit comments