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

ChatThrottleLib: Upgrade Ring metatables on library upgrades #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Meorawr
Copy link
Contributor

@Meorawr Meorawr commented May 6, 2024

This is hopefully a non-risky and better change going forward, but don't want to rock the boat immediately after fixing one upgrade issue so this can just sit and fester cobwebs in a corner for a while.

As changing the implementation of any Ring method in a current version means it has no effect on rings created in older versions, it makes sense to apply the new metatable to avoid this trap in the future.

This appears to work fine from an upgrade of version 24 direct to 28 which adds the Link method to Ring, but it hasn't been too exhaustively tested - very possible I may have missed something.

@Meorawr Meorawr changed the title Upgrade Ring metatables on library upgrades ChatThrottleLib: Upgrade Ring metatables on library upgrades May 6, 2024
This is hopefully a non-risky and better change going forward, but don't
want to rock the boat immediately after fixing one upgrade issue.

As changing the implementation of any Ring method in a current version
means it has no effect on rings created in older versions, it makes
sense to apply the new metatable to avoid this trap in the future.

This appears to work fine from an upgrade of version 24 to 28 (which
adds the Link method to Ring).
@Meorawr Meorawr force-pushed the patch/please-mind-the-metatable-between-the-train-and-the-upgraded-library branch from 6c0c0fa to bb5a22f Compare May 7, 2024 22:59
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.

1 participant