Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-09-22 14:43:15 +03:00
parent 0b767b38a2
commit 4eecb06e2c

View File

@ -4,7 +4,6 @@ package segmentio
import ( import (
"context" "context"
"errors" "errors"
"fmt"
"sync" "sync"
"time" "time"
@ -187,10 +186,8 @@ func (k *kBroker) Publish(topic string, msg *broker.Message, opts ...broker.Publ
buf, err := k.opts.Codec.Marshal(msg) buf, err := k.opts.Codec.Marshal(msg)
if err != nil { if err != nil {
fmt.Printf("TTTT %v\n", err)
return err return err
} }
fmt.Printf("FFFF\n")
kmsg := kafka.Message{Value: buf} kmsg := kafka.Message{Value: buf}
k.Lock() k.Lock()