mirror of
https://github.com/block/buzz.git
synced 2026-11-27 19:52:31 +00:00
fix(mobile): pass the relay call to the wake resolver's bounded query (#9950)
## Summary Main no longer analyzes: `RelayHttpQueryClient.sendBounded` gained a required `call` parameter in #9821, while #9804 added a caller in the push wake resolver without it. The two landed separately, so neither PR's CI saw the combination. The wake resolver's request is a `/query` POST, so it passes `RelayCall.query`. Its timeouts become `RelayTimeoutException`, which still extends `TimeoutException`, so the resolver's handling is unchanged. ## Validation - `flutter analyze` on the mobile app is clean. - `flutter test test/shared/push` passes. Signed-off-by: Tom Brow <tomb@block.xyz> Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost>
This commit is contained in:
@@ -8,6 +8,7 @@ import '../community/community.dart';
|
||||
import '../community/community_storage.dart';
|
||||
import '../crypto/event_signing.dart' show verifySchnorrHex;
|
||||
import '../relay/nostr_models.dart';
|
||||
import '../relay/relay_call_error.dart' show RelayCall;
|
||||
import '../relay/relay_client.dart' show RelayException;
|
||||
import '../relay/relay_http_query_client.dart';
|
||||
import '../relay/relay_provider.dart';
|
||||
@@ -363,6 +364,7 @@ Future<void> _resolveCommunity(
|
||||
request,
|
||||
maxBytes: pushWakeMaxResponseBytes,
|
||||
timeout: timeout < left ? timeout : left,
|
||||
call: RelayCall.query,
|
||||
);
|
||||
if (response.statusCode < 200 || response.statusCode >= 300) {
|
||||
throw RelayException(response.statusCode, '');
|
||||
|
||||
Reference in New Issue
Block a user