diff options
Diffstat (limited to 'jsonrpc/client/message_dispatcher.go')
-rw-r--r-- | jsonrpc/client/message_dispatcher.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpc/client/message_dispatcher.go b/jsonrpc/client/message_dispatcher.go index 6484484..dab75ca 100644 --- a/jsonrpc/client/message_dispatcher.go +++ b/jsonrpc/client/message_dispatcher.go @@ -14,9 +14,9 @@ type messageDispatcher[K comparable, V any] struct { } // newMessageDispatcher Creates a new messageDispatcher -func newMessageDispatcher[K comparable, V any](bufferSize int) messageDispatcher[K, V] { +func newMessageDispatcher[K comparable, V any](bufferSize int) *messageDispatcher[K, V] { chans := make(map[K]chan<- V) - return messageDispatcher[K, V]{ + return &messageDispatcher[K, V]{ chans: chans, bufferSize: bufferSize, } |