Added tests and readme

This commit is contained in:
2026-05-12 06:20:51 +00:00
parent 7e85bb0fcc
commit 139c224a31
23 changed files with 1449 additions and 97 deletions
+1 -2
View File
@@ -196,8 +196,7 @@ func (c *controlServer) dispatch(ctx context.Context, req CtrlRequest) CtrlRespo
if err := json.Unmarshal(req.Body, &body); err != nil {
return fail(err)
}
var payload json.RawMessage = body.Payload
ver, err := c.d.replicator.LocalMutate(ctx, body.Kind, json.RawMessage(payload))
ver, err := c.d.replicator.LocalMutate(ctx, body.Kind, body.Payload)
if err != nil {
return fail(err)
}