From 2c611091fd3569a4b0f3681f3982f61d5acd6696 Mon Sep 17 00:00:00 2001 From: Shravani Totre Date: Sun, 18 Jan 2026 19:24:31 +0530 Subject: [PATCH] warpc: Fix typed nil return in Start Fixes a panic in Close() when initialization fails by ensuring Start returns a nil interface instead of a typed nil. See #14372 --- internal/warpc/warpc.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/warpc/warpc.go b/internal/warpc/warpc.go index 03f4a6ed8..e62e6b09e 100644 --- a/internal/warpc/warpc.go +++ b/internal/warpc/warpc.go @@ -530,7 +530,11 @@ func Start[Q, R any](opts Options) (Dispatcher[Q, R], error) { opts.PoolSize = 1 } - return newDispatcher[Q, R](opts) + d, err := newDispatcher[Q, R](opts) + if err != nil { + return nil, err + } + return d, nil } type dispatcherPool[Q, R any] struct { -- 2.39.5