From 05d9f8562f3ae1b25f59af6bf46aab65acc845ad Mon Sep 17 00:00:00 2001 From: Zhen Ye Date: Wed, 25 Dec 2024 10:14:49 +0800 Subject: [PATCH] fix: fix complie error generated by conflict pr (#38729) issue: #38399 Signed-off-by: chyezh --- internal/util/streamingutil/util/wal_selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/streamingutil/util/wal_selector.go b/internal/util/streamingutil/util/wal_selector.go index ef6c7abfba914..3c2f0c71f59b2 100644 --- a/internal/util/streamingutil/util/wal_selector.go +++ b/internal/util/streamingutil/util/wal_selector.go @@ -22,8 +22,8 @@ type walEnable struct { // MustSelectWALName select wal name. func MustSelectWALName() string { + standalone := paramtable.GetRole() == typeutil.StandaloneRole params := paramtable.Get() - standalone := params.RuntimeConfig.Role.GetAsString() == typeutil.StandaloneRole return mustSelectWALName(standalone, params.MQCfg.Type.GetValue(), walEnable{ params.RocksmqEnable(), params.PulsarEnable(),