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

[Session] Move deactivated field off the session object #3780

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented May 1, 2024

This didn't make sense because prevSession is only used as something we assign to agent.session (or pass to agent.resumeSession that does that assignment for us). But sessions have no .deactivated fields — only accounts do.

The only actual place where we depend on this field is right below, so I extracted it to a variable.

Test Plan

Careful reading. Following types. Grepping deactivated to see usages.

Copy link

render bot commented May 1, 2024

@gaearon gaearon requested review from pfrazee and estrattonbailey May 1, 2024 00:32
Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

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

Sure lgtm

@gaearon gaearon merged commit 66ad554 into main May 1, 2024
6 checks passed
@gaearon gaearon deleted the move-check branch May 1, 2024 00:36
Copy link

github-actions bot commented May 1, 2024

Old size New size Diff
6.49 MB 6.49 MB -22 B (-0.00%)

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