Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jan 25, 2024
1 parent 056a2f5 commit 93acdeb
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/kafkalib/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,3 @@ func NewWriter(ctx context.Context, cfg config.Kafka) (*kafka.Writer, error) {

return writer, nil
}

type ReloadableWriter struct {
*kafka.Writer

cfg config.Kafka
}

func (w *ReloadableWriter) Reload(ctx context.Context) error {
if err := w.Writer.Close(); err != nil {
return err
}

writer, err := NewWriter(ctx, w.cfg)
if err != nil {
return err
}

w.Writer = writer
return nil
}

0 comments on commit 93acdeb

Please sign in to comment.