-
Notifications
You must be signed in to change notification settings - Fork 101
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
message-validation: graceful validation locks management #1840
base: stage
Are you sure you want to change the base?
message-validation: graceful validation locks management #1840
Conversation
go.mod
Outdated
go 1.22 | ||
go 1.23.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty much a requirement to use tailscale.com v1.76.3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a commit on top to drop it down to tailscale.com v1.72.0
so we can keep using go 1.22
like this (as I've done in #1798 (comment)):
go 1.22.0
toolchain go1.23.1
See #1840 (comment) for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
de9e2f2
to
cfc63e4
Compare
I've been browsing message validation code and noticed there is this ever-growing
map
(as is mentioned in TODO-comments also) - decided to fix it while I have the relevant context (as well as document our assumptions on this).The general approach on keeping
map
size under control mirrors the one implemented here - perhaps we want to create a helper type that combinesttlcache.Cache
andsingleflight.Group
in this manner - since we are doing it at least twice already (and will likely need to use this pattern in future), WDYT ?