Skip to content

Conversation

@Half-Shot
Copy link
Collaborator

This fixes #48 partially. A queuing system still needs to be designed, but this should help the poor souls who are sending messages and getting them rejected due to similar txn_ids.

"""
if not txn_id:
txn_id = self.txn_id
txn_id = self.txn_id + int(time() * 1000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll probably want string concatenation rather than numeric addition?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm, that would make more sense

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Half-Shot Half-Shot merged commit c28a846 into matrix-org:master Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redesign message sending

2 participants