fix: isolate in-memory client persistence
This commit is contained in:
@@ -619,7 +619,7 @@ func NewDevice(ctx context.Context, client *Client, selector DeviceSelector, opt
|
||||
if client == nil {
|
||||
return nil, errors.New("client must not be nil")
|
||||
}
|
||||
config := deviceConfig{httpClient: client.session(), cacheDir: filepath.Dir(client.authPath), delay: 500 * time.Millisecond}
|
||||
config := deviceConfig{httpClient: client.session(), cacheDir: client.deviceCacheDir, delay: 500 * time.Millisecond}
|
||||
for _, option := range options {
|
||||
if option != nil {
|
||||
if err := option(&config); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user