elasticstream/source/elastic/teardown.go

16 lines
229 B
Go

package elastic
import (
"context"
"fmt"
)
// close the client
func (c *Client) Teardown(ctx context.Context) error {
if c == nil || c.ch == nil {
return fmt.Errorf("error source not opened for reading")
}
return nil
}