Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Oct 28, 2024
1 parent 1c5d37a commit 0ecc01a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/reown_appkit/example/base/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:convert';
import 'dart:developer';
import 'dart:io';

import 'package:flutter/foundation.dart';
Expand Down Expand Up @@ -350,7 +351,7 @@ class _MyHomePageState extends State<MyHomePage> {
}

void _onSessionConnect(SessionConnect? event) {
debugPrint('[SampleDapp] _onSessionConnect $event');
log('[SampleDapp] _onSessionConnect ${jsonEncode(event?.session.toJson())}');
}

void _onSessionAuthResponse(SessionAuthResponse? response) {
Expand Down
4 changes: 1 addition & 3 deletions packages/reown_core/lib/pairing/pairing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ class Pairing implements IPairing {
try {
await pairings.set(topic, pairing);
await core.crypto.setSymKey(symKey, overrideTopic: topic);
await core.relayClient.subscribe(topic: topic).timeout(
const Duration(seconds: 15),
);
await core.relayClient.subscribe(topic: topic);
await core.expirer.set(topic, expiry);

onPairingCreate.broadcast(
Expand Down
2 changes: 1 addition & 1 deletion packages/reown_core/lib/relay_client/relay_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class RelayClient implements IRelayClient {

core.logger.d('[$runtimeType]: Initializing WebSocket with $url');
await socketHandler.setup(url: url);
await socketHandler.connect().timeout(Duration(seconds: 5));
await socketHandler.connect();

jsonRPC = Peer(socketHandler.channel!);

Expand Down

0 comments on commit 0ecc01a

Please sign in to comment.