Skip to content

Commit

Permalink
feat(EWM-342): gql transport params
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Komarov committed Oct 9, 2024
1 parent 039e4a6 commit ca565f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ abstract class TransportRepository {
required String group,
required List<String> endpoints,
required bool local,
int? latencyDetectionInterval,
int? maxLatency,
int? endpointSelectionRetryCount,
});

/// This allows create Protobuf based transport from application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,17 @@ mixin TransportRepositoryImpl implements TransportRepository {
required String group,
required List<String> endpoints,
required bool local,
int? latencyDetectionInterval,
int? maxLatency,
int? endpointSelectionRetryCount,
}) async {
final settings = GqlNetworkSettings(
endpoints: endpoints,
latencyDetectionInterval: defaultLatencyDetectionInterval,
maxLatency: defaultMaxLatency,
endpointSelectionRetryCount: defaultEndpointSelectionRetryCount,
latencyDetectionInterval:
latencyDetectionInterval ?? defaultLatencyDetectionInterval,
maxLatency: maxLatency ?? defaultMaxLatency,
endpointSelectionRetryCount:
endpointSelectionRetryCount ?? defaultEndpointSelectionRetryCount,
local: local,
);

Expand Down

0 comments on commit ca565f2

Please sign in to comment.