Skip to content

Commit

Permalink
fix call vs request
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Nov 20, 2023
1 parent 326f50e commit 094e963
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions _examples/cluster-basic/node1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions cluster/default_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 094e963

Please sign in to comment.