Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

simplify the DialSync code #272

Merged
merged 1 commit into from
Sep 7, 2021
Merged

simplify the DialSync code #272

merged 1 commit into from
Sep 7, 2021

Conversation

marten-seemann
Copy link
Contributor

It's easier to reason about this code if activeDial doesn't contain a pointer back to DialSync (which already has a map of activeDials). It also allows us to remove the memory footprint of the activeDial struct, so this should be (slightly) more efficient.

No functional change expected.

@Stebalien
Copy link
Member

Flagging others for review. We need more people who understand this code.

It's easier to reason about this code if activeDial doesn't contain a pointer
back to DialSync (which already has a map of activeDials). It also allows us to
remove the memory footprint of the activeDial struct, so this should be
(slightly) more efficient.
@marten-seemann marten-seemann merged commit 7c403f1 into master Sep 7, 2021
@marten-seemann marten-seemann deleted the clean-up-dial-sync branch September 7, 2021 12:43
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants