v0.0.2.5 Изменен хост kafka
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
madipo2611 2025-08-14 15:34:53 +03:00
parent 8577f844c2
commit 01c5ae11a2

View File

@ -332,7 +332,7 @@ func (s *server) StreamMessages(req *proto.StreamMessagesRequest, stream proto.M
log.Printf("Starting message stream for user %d", req.UserId)
reader := kafka.NewReader(kafka.ReaderConfig{
Brokers: []string{"kafka:9092"},
Brokers: []string{"89.104.69.222:9092"},
Topic: "user_messages",
GroupID: fmt.Sprintf("user-%d", req.UserId),
MinBytes: 10e3,
@ -386,7 +386,7 @@ func main() {
// Initialize Kafka producer
producer := &kafka.Writer{
Addr: kafka.TCP("kafka:9092"),
Addr: kafka.TCP("89.104.69.222:9092"),
Topic: "user_messages",
Balancer: &kafka.Hash{},
}