code: def load(self):
          
          if self._leaser is None:
              return 0
  
          return max(
              [
                  self._leaser.message_count / self._flow_control.max_messages,
                  self._leaser.bytes / self._flow_control.max_bytes,
              ]
          )
docs: Return the current load.
  
          The load is represented as a float, where 1.0 represents having
          hit one of the flow control limits, and values between 0.0 and 1.0
          represent how close we are to them. (0.5 means we have exactly half
          of what the flow control setting allows, for example.)
  
          There are (currently) two flow control settings; this property
          computes how close the manager is to each of them, and returns
          whichever value is higher. (It does not matter that we have lots of
          running room on setting A if setting B is over.)
  
          Returns:
              float: The load value.