mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
@@ -22,7 +22,14 @@ class NetworkRepository {
|
|||||||
final session = URLSession.fromRawPointer(clientPointer.cast());
|
final session = URLSession.fromRawPointer(clientPointer.cast());
|
||||||
_client = CupertinoClient.fromSharedSession(session);
|
_client = CupertinoClient.fromSharedSession(session);
|
||||||
} else {
|
} else {
|
||||||
_client = OkHttpClient.fromJniGlobalRef(clientPointer);
|
_client = OkHttpClient.fromJniGlobalRef(
|
||||||
|
clientPointer,
|
||||||
|
configuration: const OkHttpClientConfiguration(
|
||||||
|
connectTimeout: Duration(seconds: 30),
|
||||||
|
readTimeout: Duration(seconds: 60),
|
||||||
|
writeTimeout: Duration(seconds: 60),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user