Use strings instead of keywords for game names #6

Merged
seabass merged 1 commits from seabass/matchbot:string-keys into master 2022-03-31 18:54:21 +02:00
Owner

This pull request resolves issue #2.

Commits

Use strings instead of keywords for game names

This commit changes the internal representation of game names in the state data to be strings instead of keywords. This fixes a potential memory leak relating to games that no longer have any players, since strings, unlike keywords, are garbage collected when no longer in use.

This pull request resolves issue https://git.libregaming.org/LibreGaming/matchbot/issues/2. # Commits ## [Use strings instead of keywords for game names](https://git.libregaming.org/seabass/matchbot/commit/6a594c5ad300eff7365bc0908b17426994d414d0) This commit changes the internal representation of game names in the state data to be strings instead of keywords. This fixes a potential memory leak relating to games that no longer have any players, since strings, unlike keywords, are garbage collected when no longer in use.
seabass added this to the 1.0.1 milestone 2022-03-30 15:54:42 +02:00
seabass added 1 commit 2022-03-30 15:54:42 +02:00
6a594c5ad3 Use strings instead of keywords for game names
This commit changes the internal representation of game names in the
state data to be strings instead of keywords. This fixes a potential
memory leak relating to games that no longer have any players, since
strings, unlike keywords, are garbage collected when no longer in use.

Resolves issue #2

Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
Author
Owner

@sm2n, please could you confirm that this resolves the issue you raised in #2? Then I'll make the 1.0.1 release. Thank you!

@sm2n, please could you confirm that this resolves the issue you raised in #2? Then I'll make the 1.0.1 release. Thank you!
seabass added a new dependency 2022-03-30 15:56:14 +02:00
Owner

LGTM

LGTM
Author
Owner

Thanks @sm2n! 😃

Thanks @sm2n! :smiley:
seabass merged commit 6a594c5ad3 into master 2022-03-31 18:54:21 +02:00
Sign in to join this conversation.
No reviewers
No Label
security
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
Reference: LibreGaming/matchbot#6
No description provided.