From 5a744f28addb8f4eae3c73d998b9eafcc0583e6a Mon Sep 17 00:00:00 2001 From: Jan Cajthaml Date: Tue, 14 Dec 2021 20:43:07 +0100 Subject: [PATCH] strict FSM of actors --- actor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actor.go b/actor.go index a8eea86..45aab4c 100644 --- a/actor.go +++ b/actor.go @@ -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