Change service error handling

This commit is contained in:
problematicconsumer
2024-02-13 17:02:10 +03:30
parent 28ece8fb2e
commit 2293a390e5
4 changed files with 129 additions and 98 deletions

View File

@@ -32,7 +32,7 @@ class ProxyRepositoryImpl
@override
Stream<Either<ProxyFailure, List<ProxyGroupEntity>>> watchProxies() {
return singbox.watchOutbounds().map((event) {
return singbox.watchGroups().map((event) {
final groupWithSelected = {
for (final group in event) group.tag: group.selected,
};
@@ -66,7 +66,7 @@ class ProxyRepositoryImpl
@override
Stream<Either<ProxyFailure, List<ProxyGroupEntity>>> watchActiveProxies() {
return singbox.watchActiveOutbounds().map((event) {
return singbox.watchActiveGroups().map((event) {
final groupWithSelected = {
for (final group in event) group.tag: group.selected,
};