From 459f7c25e28f432a563966deb763489b732833b2 Mon Sep 17 00:00:00 2001 From: evilolipop Date: Thu, 28 Mar 2024 11:13:24 +0800 Subject: [PATCH] fix: using global varible causes overwrites when starting two clusters in memory --- cluster/default_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/default_context.go b/cluster/default_context.go index f8f7f9f2..0db92e91 100644 --- a/cluster/default_context.go +++ b/cluster/default_context.go @@ -39,7 +39,7 @@ func (dcc *DefaultContext) Request(identity, kind string, message interface{}, o var resp interface{} var counter int - callConfig := DefaultGrainCallConfig(dcc.cluster) + callConfig := NewGrainCallOptions(dcc.cluster) for _, o := range opts { o(callConfig) }