MultiServer: Add slot to SetReply packets (#3747)

* Add slot to datastorage set response

* update docs as well
This commit is contained in:
NewSoupVi
2025-01-18 19:59:26 +01:00
committed by GitHub
parent 8732974857
commit 005a143e3e
2 changed files with 2 additions and 0 deletions

View File

@@ -1992,6 +1992,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
args["cmd"] = "SetReply"
value = ctx.stored_data.get(args["key"], args.get("default", 0))
args["original_value"] = copy.copy(value)
args["slot"] = client.slot
for operation in args["operations"]:
func = modify_functions[operation["operation"]]
value = func(value, operation["value"])