From 041fda85227cf6591c1249d23563cfd4204079be Mon Sep 17 00:00:00 2001 From: Alexey Date: Fri, 1 Aug 2025 20:07:15 +0300 Subject: [PATCH] change ErrSessionIsTaken to EssSessionIsBusy --- internal/server/gateway/route.go | 4 ++-- internal/server/rpc/errors.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/server/gateway/route.go b/internal/server/gateway/route.go index 4e79d57..ee2b22a 100644 --- a/internal/server/gateway/route.go +++ b/internal/server/gateway/route.go @@ -26,8 +26,8 @@ func (gs *GatewayServer) Handle(w http.ResponseWriter, r *http.Request) { if !gs.sm.Add(sessionUUID) { rpc.WriteError(w, &rpc.RPCResponse{ Error: map[string]any{ - "code": rpc.ErrSessionIsTaken, - "message": rpc.ErrSessionIsTakenS, + "code": rpc.ErrSessionIsBusy, + "message": rpc.ErrSessionIsBusyS, }, }) return diff --git a/internal/server/rpc/errors.go b/internal/server/rpc/errors.go index 13150d7..bb8dca5 100644 --- a/internal/server/rpc/errors.go +++ b/internal/server/rpc/errors.go @@ -25,6 +25,6 @@ const ( ErrMethodIsMissing = -32020 ErrMethodIsMissingS = "Method is missing" - ErrSessionIsTaken = -32030 - ErrSessionIsTakenS = "The session is already taken" + ErrSessionIsBusy = -32030 + ErrSessionIsBusyS = "The session is busy" )