diff options
author | Valery Piashchynski <[email protected]> | 2022-01-12 17:16:33 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-12 17:16:33 +0300 |
commit | 7627cb3ba0fd42592ed36bdf4de5c5af1ffa9f18 (patch) | |
tree | 62ce8ef32f63876187b773faf32b2b325458b104 /worker/sync_worker.go | |
parent | a191eac78092dda89dbcd19c7a3a171f6aafb71a (diff) | |
parent | a3077cf70c061234960b0f6b8a8c8e99ac2254b7 (diff) |
[#890]: feat(protocol): add codec type to the protocol structurev2.7.0
Diffstat (limited to 'worker/sync_worker.go')
-rwxr-xr-x | worker/sync_worker.go | 2 |
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]])), } |