From 094e9631beb7ae77364e44b568e4834906b5503a Mon Sep 17 00:00:00 2001 From: Roger Johansson Date: Mon, 20 Nov 2023 19:39:46 +0100 Subject: [PATCH] fix call vs request --- _examples/cluster-basic/node1/main.go | 1 + cluster/default_context.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/_examples/cluster-basic/node1/main.go b/_examples/cluster-basic/node1/main.go index d84cef44..297d3105 100644 --- a/_examples/cluster-basic/node1/main.go +++ b/_examples/cluster-basic/node1/main.go @@ -20,6 +20,7 @@ func main() { fmt.Printf("Got pid %v", pid) res, _ := c.Request("abc", "hello", &actor.Touch{}) fmt.Printf("Got response %v", res) + fmt.Println() console.ReadLine() c.Shutdown(true) diff --git a/cluster/default_context.go b/cluster/default_context.go index 883d573e..875e1119 100644 --- a/cluster/default_context.go +++ b/cluster/default_context.go @@ -85,8 +85,6 @@ selectloop: case actor.ErrTimeout, remote.ErrTimeout, actor.ErrDeadLetter, remote.ErrDeadLetter: counter = callConfig.RetryAction(counter) dcc.cluster.PidCache.Remove(identity, kind) - err = nil // reset our error variable as we can succeed still - continue default: break selectloop