Skip to content

Commit

Permalink
Remove monitoring from state
Browse files Browse the repository at this point in the history
  • Loading branch information
chouzar committed Jun 25, 2024
1 parent 0a88745 commit 2657754
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/chip.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ pub opaque type Chip(msg, tag, group) {

type State(msg, tag, group) {
State(
// Keeps track of monitors to understand when to de-register a process.
monitoring: Set(process.ProcessMonitor),
// A copy of the actor's internal selector, useful to track new monitor down messages.
selector: process.Selector(Message(msg, tag, group)),
// Store for all registered subjects.
Expand All @@ -209,7 +207,6 @@ fn init() -> actor.InitResult(State(msg, tag, group), Message(msg, tag, group))

actor.Ready(
State(
monitoring: set.new(),
selector: selector,
registered: set.new(),
tagged: dict.new(),
Expand Down

0 comments on commit 2657754

Please sign in to comment.