mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 19:32:26 +00:00
change ErrSessionIsTaken to EssSessionIsBusy
This commit is contained in:
@@ -26,8 +26,8 @@ func (gs *GatewayServer) Handle(w http.ResponseWriter, r *http.Request) {
|
|||||||
if !gs.sm.Add(sessionUUID) {
|
if !gs.sm.Add(sessionUUID) {
|
||||||
rpc.WriteError(w, &rpc.RPCResponse{
|
rpc.WriteError(w, &rpc.RPCResponse{
|
||||||
Error: map[string]any{
|
Error: map[string]any{
|
||||||
"code": rpc.ErrSessionIsTaken,
|
"code": rpc.ErrSessionIsBusy,
|
||||||
"message": rpc.ErrSessionIsTakenS,
|
"message": rpc.ErrSessionIsBusyS,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ const (
|
|||||||
ErrMethodIsMissing = -32020
|
ErrMethodIsMissing = -32020
|
||||||
ErrMethodIsMissingS = "Method is missing"
|
ErrMethodIsMissingS = "Method is missing"
|
||||||
|
|
||||||
ErrSessionIsTaken = -32030
|
ErrSessionIsBusy = -32030
|
||||||
ErrSessionIsTakenS = "The session is already taken"
|
ErrSessionIsBusyS = "The session is busy"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user