slaventius 2 years ago
parent da2634ed18
commit dd7547c042
  1. BIN
      authService
  2. 4
      internal/postman.go

Binary file not shown.

@ -11,12 +11,13 @@ import (
)
type AuthPostmanServer struct {
kafkaReader *kafka.Reader
ctx context.Context
kafkaReader *kafka.Reader
}
func NewServer(ctx context.Context, config *config.Config, topic string) *AuthPostmanServer {
return &AuthPostmanServer{
ctx: ctx,
kafkaReader: kafka.NewReader(kafka.ReaderConfig{
Topic: topic,
Brokers: []string{net.JoinHostPort(config.Kafka.Host, strconv.Itoa(config.Kafka.Port))},
@ -25,7 +26,6 @@ func NewServer(ctx context.Context, config *config.Config, topic string) *AuthPo
MinBytes: 10e3, // 10KB
MaxBytes: 10e6, // 10MB
}),
ctx: ctx,
}
}

Loading…
Cancel
Save