diff --git a/lib/src/native/realm_core.dart b/lib/src/native/realm_core.dart index d7e41fe3af..b62c9b1f78 100644 --- a/lib/src/native/realm_core.dart +++ b/lib/src/native/realm_core.dart @@ -187,7 +187,7 @@ class _RealmCore { } static void request_callback(Object userData, realm_http_request request, Pointer request_context) { - () async { // TODO: Use another isolate, perhaps? + () async { final client = userData as HttpClient; client.connectionTimeout = Duration(milliseconds: request.timeout_ms); try { @@ -237,7 +237,6 @@ class _RealmCore { int headerCnt = 0; response.headers.forEach((name, values) { - // Freaking odd interface :-/ headerCnt += values.length; });