parameters: (self)
docstring: Reset any state that must be reset during retries
docstring_summary: Reset any state that must be reset during retries
docstring_tokens: Reset any state that must be reset during retries
function: def _reset_on_retry(self):
          """Reset any state that must be reset during retries"""
          self.primary = None
          self.retries += 1
          if self.replies_manager.num_distinct_replies() > self.config.f:
              self.rsi_replies = dict()
              self.replies_manager.clear_replies()
function_tokens: def _reset_on_retry ( self ) : self . primary = None self . retries += 1 if self . replies_manager . num_distinct_replies ( ) > self . config . f : self . rsi_replies = dict ( ) self . replies_manager . clear_replies ( )