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"
"net/http"
"net/http/httptest"
"strings"
@@ -113,7 +114,7 @@ type mockUsers struct {
username, password, token, salt string
}
func (m *mockUsers) Authenticate(username, password, token, salt string) (*model.User, error) {
func (m *mockUsers) Authenticate(ctx context.Context, username, password, token, salt string) (*model.User, error) {
m.username = username
m.password = password
m.token = token