From 626186dcede46daa472cdeb6b0e938ba87055007 Mon Sep 17 00:00:00 2001 From: Ashton Date: Sat, 30 Dec 2023 21:23:09 +0000 Subject: [PATCH] increase request timeout + fix cluster example build output names in the makefile --- Makefile | 4 ++-- cluster/cluster.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4f49733..776da60 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ build: go build -o bin/metrics examples/metrics/main.go go build -o bin/chatserver examples/chat/server/main.go go build -o bin/chatclient examples/chat/client/main.go - go build -o bin/cluster examples/cluster/member_1/main.go - go build -o bin/cluster examples/cluster/member_2/main.go + go build -o bin/cluster_member_1 examples/cluster/member_1/main.go + go build -o bin/cluster_member_2 examples/cluster/member_2/main.go bench: go run ./_bench/. diff --git a/cluster/cluster.go b/cluster/cluster.go index 0f169ea..efe12fe 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -10,7 +10,7 @@ import ( "github.com/google/uuid" ) -var requestTimeout = time.Millisecond * 50 +var requestTimeout = time.Second // Producer is a function that can produce an actor.Producer. // Pretty simple, but yet powerfull tool to construct receivers