mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 19:46:52 +01:00
Shorten rebindLocked's header
- the rationale for Wire's first attempt and its reload callback being the same call is one sentence, not five Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2f1931dc36
commit
e0dc742e17
1 file changed
+2
-6
@@ -51,12 +51,8 @@ func (e *endpoint) Path() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// rebindLocked brings the endpoint up at path with acc, moves it there, or, when it is
|
// rebindLocked brings the endpoint up at path with acc, moves it there, or, when it is
|
||||||
// already there, applies a changed access. It is the one place a socket is installed and
|
// already there, applies a changed access; with nothing changed it does nothing, which
|
||||||
// the one way an endpoint comes up, so Wire's first attempt and its reload callback are
|
// is what lets Wire's first attempt and its reload callback be the same call.
|
||||||
// the same call, and an endpoint already at path is left as it is: Wire registers the
|
|
||||||
// callback before the first attempt, so a HUP that lands between the two has the
|
|
||||||
// callback do the first bind, and the first attempt then finds the socket it was about
|
|
||||||
// to create already up.
|
|
||||||
//
|
//
|
||||||
// The new socket is bound before the old one is given up: a bad path in a reloaded
|
// The new socket is bound before the old one is given up: a bad path in a reloaded
|
||||||
// config leaves the operator with the endpoint they already had rather than none. serve
|
// config leaves the operator with the endpoint they already had rather than none. serve
|
||||||
|
|||||||
Reference in new issue
Block a user