mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
transport/writer.go: Add Close() method.
This commit is contained in:
parent
1de6cd9432
commit
c225505143
1 changed files with 4 additions and 0 deletions
|
|
@ -10,4 +10,8 @@ type Writer interface {
|
||||||
// Flush writes any buffered messages to the channel.
|
// Flush writes any buffered messages to the channel.
|
||||||
// If the implementation does not support buffering. this is a noop.
|
// If the implementation does not support buffering. this is a noop.
|
||||||
Flush() error
|
Flush() error
|
||||||
|
|
||||||
|
// Close closes the writer
|
||||||
|
// Any blocked Flush or Write operations will be unblocked.
|
||||||
|
Close() error
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue