Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPA #2

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

TPA #2

wants to merge 20 commits into from

Conversation

YTG1234
Copy link
Contributor

@YTG1234 YTG1234 commented Nov 6, 2020

This is of course a draft PR because it's not done yet.

@YTG1234
Copy link
Contributor Author

YTG1234 commented Nov 6, 2020

How should I store the teleport requests?

@gdude2002
Copy link
Owner

How should I store the teleport requests?

In-memory, I don't think persisting them would be useful. You really only need a mapping I'd say — UUID to request object.

They should expire after 30 seconds or so as well.

@YTG1234
Copy link
Contributor Author

YTG1234 commented Nov 7, 2020

I think I pretty much implemented all of the needed functionality. Currently, the requests are stored in a weird map format and do not expire.

@YTG1234
Copy link
Contributor Author

YTG1234 commented Nov 7, 2020

With this weird UUID system if you request a teleport and had already requested it for that person it overwrites it, should I prevent that?

The only way to delete a teleport request is to cancel it or deny it.

@YTG1234 YTG1234 marked this pull request as ready for review November 7, 2020 15:22
@YTG1234 YTG1234 mentioned this pull request Dec 10, 2020
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.

3 participants