Add context to all methods in engine layer

This commit is contained in:
Deluan
2020-01-22 08:32:31 -05:00
parent c73f549c83
commit f0ee41a8af
14 changed files with 44 additions and 37 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package subsonic
import (
"context"
"errors"
"io"
"net/http/httptest"
@@ -17,7 +18,7 @@ type fakeCover struct {
recvSize int
}
func (c *fakeCover) Get(id string, size int, out io.Writer) error {
func (c *fakeCover) Get(ctx context.Context, id string, size int, out io.Writer) error {
if c.err != nil {
return c.err
}