Skip to content

Commit

Permalink
strict FSM of actors
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml authored Dec 14, 2021
1 parent 802f8ab commit 5a744f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ type actorsMap struct {
func (rm *actorsMap) Load(key string) (*Actor, bool) {
rm.RLock()
defer rm.RUnlock()
return rm.underlying[key]
result, ok := rm.underlying[key]
return result, ok
}

// Delete works same as delete from map
Expand Down

0 comments on commit 5a744f2

Please sign in to comment.