Commit 00aeb107 authored by Brian Tiger Chow's avatar Brian Tiger Chow

style: Stop -> Close() error for Closer interface

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 1e5f280a
......@@ -37,8 +37,9 @@ type SessionGenerator struct {
cancel context.CancelFunc
}
func (g *SessionGenerator) Stop() {
func (g *SessionGenerator) Close() error {
g.cancel()
return nil // for Closer interface
}
func (g *SessionGenerator) Next() Instance {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment