File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,13 @@ func (s *Server) RequestTxIds(
108
108
if err := s .SendMessage (msg ); err != nil {
109
109
return nil , err
110
110
}
111
- // Reset ack count
112
- s .ackCount = 0
113
111
// Wait for result
114
112
txIds , ok := <- s .requestTxIdsResultChan
115
113
if ! ok {
116
114
return nil , protocol .ProtocolShuttingDownError
117
115
}
116
+ // Update ack count for next call
117
+ s .ackCount = len (txIds )
118
118
return txIds , nil
119
119
}
120
120
@@ -129,8 +129,6 @@ func (s *Server) RequestTxs(txIds []TxId) ([]TxBody, error) {
129
129
if ! ok {
130
130
return nil , protocol .ProtocolShuttingDownError
131
131
}
132
- // Set the ack count for the next RequestTxIds request based on the number we got for this one
133
- s .ackCount = len (txs )
134
132
return txs , nil
135
133
}
136
134
You can’t perform that action at this time.
0 commit comments