From 17b2720f54fcb3339b2b6d8fbdfb5ebb64863258 Mon Sep 17 00:00:00 2001 From: Clint Purser Date: Mon, 30 Sep 2024 18:11:51 -0400 Subject: [PATCH] flyby fix lint suggesting const (#268) --- lib/src/rpc/dial.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/rpc/dial.dart b/lib/src/rpc/dial.dart index 959794797d4..03c2a4372db 100644 --- a/lib/src/rpc/dial.dart +++ b/lib/src/rpc/dial.dart @@ -62,7 +62,7 @@ class DialOptions { bool _usingMdns = false; /// Timeout is the timeout for dial. - Duration timeout = Duration(seconds: 10); + Duration timeout = const Duration(seconds: 10); /// If specified, a custom log output for dial logs. LogOutput? logOutput; @@ -328,8 +328,8 @@ Future _dialWebRtc(String address, DialOptions options, Strin int updateCalls = 0; // how many times we've sent an update to the sig. server int updateCallsFinished = 0; // how many update calls have finished - Duration totalCallUpdateDuration = Duration(); - Duration maxCallUpdateDuration = Duration(); + Duration totalCallUpdateDuration = const Duration(); + Duration maxCallUpdateDuration = const Duration(); bool iceConnectionCompleted = false; peerConnection.onIceConnectionState = (RTCIceConnectionState state) async {