From 90a3ce11814a795c0240310d635458a38dc6c61a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 Aug 2025 10:35:27 +0200 Subject: [PATCH] ... --- lib/schemas/jsonrpc/model_request.v | 2 +- lib/schemas/jsonrpc/transport_unixsocket.v | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/schemas/jsonrpc/model_request.v b/lib/schemas/jsonrpc/model_request.v index cd917739..f4c39021 100644 --- a/lib/schemas/jsonrpc/model_request.v +++ b/lib/schemas/jsonrpc/model_request.v @@ -158,5 +158,5 @@ pub fn decode_request_generic[T](data string) !RequestGeneric[T] { // Returns: // - A JSON string representation of the RequestGeneric object pub fn (req RequestGeneric[T]) encode[T]() string { - return json2.encode_pretty(req).replace('\\/', '/') + return json2.encode(req) } diff --git a/lib/schemas/jsonrpc/transport_unixsocket.v b/lib/schemas/jsonrpc/transport_unixsocket.v index ab17b787..b46835cc 100644 --- a/lib/schemas/jsonrpc/transport_unixsocket.v +++ b/lib/schemas/jsonrpc/transport_unixsocket.v @@ -77,11 +77,9 @@ pub fn (mut t UnixSocketTransport) send(request string, params SendParams) !stri } // Append the newly read data to the total response res_total << res[..n] - if n < 8192 { - // console.print_debug('No more data to read, breaking loop after ${n} bytes') - // TODO: this seems weird - break - } + + //here we need to check we are at end + } unix.shutdown(socket.sock.handle) socket.close() or {}