Skip to content

Commit 5022b43

Browse files
PerondasPerondas
andauthored
Fixed formatting and updated workflow (#342)
* Fixed formatting * Replaced deprecated command --------- Co-authored-by: Perondas <Pperondas@gmail.com>
1 parent 1efc86d commit 5022b43

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
flutter-version: '2.8.0'
2626
channel: 'stable'
2727
- run: flutter packages get
28-
- run: flutter format lib/ test/ --set-exit-if-changed
28+
- run: dart format lib/ test/ --set-exit-if-changed

lib/src/config.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ class Settings {
6666
int sip_message_delay = 0;
6767
}
6868

69-
7069
// Configuration checks.
7170
class Checks {
7271
Map<String, Null Function(Settings src, Settings? dst)> mandatory =

lib/src/sip_ua_helper.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ class SIPUAHelper extends EventManager {
115115

116116
// Reset settings
117117
_settings = Settings();
118-
WebSocketInterface socket = WebSocketInterface(
119-
uaSettings.webSocketUrl, messageDelay: _settings.sip_message_delay, webSocketSettings: uaSettings.webSocketSettings);
118+
WebSocketInterface socket = WebSocketInterface(uaSettings.webSocketUrl,
119+
messageDelay: _settings.sip_message_delay,
120+
webSocketSettings: uaSettings.webSocketSettings);
120121
_settings.sockets = <WebSocketInterface>[socket];
121122
_settings.uri = uaSettings.uri;
122123
_settings.sip_message_delay = uaSettings.sip_message_delay;
@@ -699,6 +700,7 @@ class UaSettings {
699700

700701
/// ICE Gathering Timeout, default 500ms
701702
int iceGatheringTimeout = 500;
703+
702704
/// Sip Message Delay (in millisecond) (default 0).
703705
int sip_message_delay = 0;
704706
List<Map<String, String>> iceServers = <Map<String, String>>[

lib/src/transports/websocket_dart_impl.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class WebSocketImpl {
2222
void connect(
2323
{Iterable<String>? protocols,
2424
required WebSocketSettings webSocketSettings}) async {
25-
handleQueue();
25+
handleQueue();
2626
logger.i('connect $_url, ${webSocketSettings.extraHeaders}, $protocols');
2727
try {
2828
if (webSocketSettings.allowBadCertificate) {
@@ -43,6 +43,7 @@ class WebSocketImpl {
4343
onClose?.call(500, e.toString());
4444
}
4545
}
46+
4647
final StreamController<dynamic> queue = StreamController<dynamic>.broadcast();
4748
void handleQueue() async {
4849
queue.stream.asyncMap((dynamic event) async {

0 commit comments

Comments
 (0)