Skip to content

Commit

Permalink
removing getFullRequestData section
Browse files Browse the repository at this point in the history
  • Loading branch information
hrajwade96 committed Oct 8, 2024
1 parent 852b144 commit 433af38
Showing 1 changed file with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,8 @@ class NetworkController extends DisposableController
shouldLoad: (data) => !data.isEmpty,
loadData: (data) => loadOfflineData(data),
);
}else{
unawaited(startRecording());
debugPrint('started recording');
addAutoDisposeListener(
serviceConnection.serviceManager.isolateManager.mainIsolate,
() {
if (serviceConnection
.serviceManager.isolateManager.mainIsolate.value !=
null) {
unawaited(startRecording());
}
},
);
} else {
await startRecording();
}
} catch (e) {
_log.shout('Could not load offline data: $e');
Expand All @@ -206,12 +195,6 @@ class NetworkController extends DisposableController
final selected = offlineData.getRequest(offlineData.selectedRequestId!);
if (selected != null) {
selectedRequest.value = selected;
if (selectedRequest.value is DartIOHttpRequestData) {
unawaited(
(selectedRequest.value as DartIOHttpRequestData)
.getFullRequestData(),
);
}
resetDropDown();
}
}
Expand Down

0 comments on commit 433af38

Please sign in to comment.