From 389891174cc5c0441535e5d339d3917ebd23586d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Mon, 28 Mar 2022 11:00:50 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: blagoev --- lib/src/native/realm_core.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; });