Skip to content

Commit e26f092

Browse files
committed
docs: add release note for actor SingletonRef
1 parent e2d50f3 commit e26f092

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/release-notes/release-notes-0.21.0.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,16 @@
423423
`lnutils.ContextFromQuit` helper bridges the existing `quit` channels to
424424
`context.Context`, so all gossip awaits now respect shutdown uniformly.
425425

426+
* [Added `SingletonRef` to the `actor`
427+
package](https://github.com/lightningnetwork/lnd/pull/10759) for service
428+
keys that are expected to have at most one registered actor.
429+
`ServiceKey.SpawnSingleton` and `ServiceKey.Singleton` give spawners and
430+
consumers a direct, type-safe path to a single-actor service, replacing
431+
the `Router + RoundRobinStrategy` pattern previously needed to front a
432+
singleton. `SingletonRef` tolerates transient double-registration by
433+
logging the invariant violation and using the first registered actor, so
434+
the system stays functional through brief registration races.
435+
426436
## Tooling and Documentation
427437

428438
* [Added missing `lncli:` tags](https://github.com/lightningnetwork/lnd/pull/10658)

0 commit comments

Comments
 (0)