1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-18 04:40:03 +02:00

transport/writer.go: Add Close() method.

This commit is contained in:
Henrik Hautakoski 2023-03-29 11:52:31 +02:00
parent 1de6cd9432
commit c225505143

View file

@ -10,4 +10,8 @@ type Writer interface {
// Flush writes any buffered messages to the channel.
// If the implementation does not support buffering. this is a noop.
Flush() error
// Close closes the writer
// Any blocked Flush or Write operations will be unblocked.
Close() error
}