def _build_receiver(self):
<EOL>self._handler.message_handler = self._handler.receiver_type(<EOL>self._handler._session,<EOL>self._handler._remote_address,<EOL>self._handler._name,<EOL>on_message_received=self._handler._message_received,<EOL>name='<STR_LIT>'.format(uuid.uuid4()),<EOL>debug=self._handler._debug_trace,<EOL>prefetch=self._handler._prefetch,<EOL>max_message_size=self._handler._max_message_size,<EOL>properties=self._handler._link_properties,<EOL>error_policy=self._handler._error_policy,<EOL>encoding=self._handler._encoding)<EOL>if self.mode != ReceiveSettleMode.PeekLock:<EOL><INDENT>self._handler.message_handler.send_settle_mode = constants.SenderSettleMode.Settled<EOL>self._handler.message_handler.receive_settle_mode = constants.ReceiverSettleMode.ReceiveAndDelete<EOL>self._handler.message_handler._settle_mode = constants.ReceiverSettleMode.ReceiveAndDelete<EOL><DEDENT>self._handler.message_handler.open()<EOL>
This is a temporary patch pending a fix in uAMQP.