summaryrefslogtreecommitdiff
path: root/worker/sync_worker.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-01-12 17:00:25 +0300
committerValery Piashchynski <[email protected]>2022-01-12 17:00:25 +0300
commit78e51b60e11147d625ef08f1efac923a41bb33b2 (patch)
treefce7a2fcac9cd389b659c12a2d62f14b089083dd /worker/sync_worker.go
parenta191eac78092dda89dbcd19c7a3a171f6aafb71a (diff)
update protocol structure, use encoder
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'worker/sync_worker.go')
-rwxr-xr-xworker/sync_worker.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/sync_worker.go b/worker/sync_worker.go
index e3e85ba6..6ece0ad7 100755
--- a/worker/sync_worker.go
+++ b/worker/sync_worker.go
@@ -162,6 +162,7 @@ func (tw *SyncWorkerImpl) execPayload(p *payload.Payload) (*payload.Payload, err
// can be 0 here
fr.WriteVersion(fr.Header(), frame.VERSION_1)
+ fr.WriteFlags(fr.Header(), p.Codec)
// obtain a buffer
buf := tw.get()
@@ -207,6 +208,7 @@ func (tw *SyncWorkerImpl) execPayload(p *payload.Payload) (*payload.Payload, err
}
pld := &payload.Payload{
+ Codec: flags,
Body: make([]byte, len(frameR.Payload()[options[0]:])),
Context: make([]byte, len(frameR.Payload()[:options[0]])),
}