mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
transport/redis_pubsub/publisher.go: Adding Close() method.
This commit is contained in:
parent
6a5292da5e
commit
1de6cd9432
1 changed files with 4 additions and 0 deletions
|
|
@ -31,3 +31,7 @@ func (r *Publisher) Flush() error {
|
||||||
_, err := r.pipeline.Exec(r.ctx)
|
_, err := r.pipeline.Exec(r.ctx)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r *Publisher) Close() error {
|
||||||
|
return r.pipeline.Close()
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue