File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
app/src/main/java/to/bitkit/fcm Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,9 @@ class WakeNodeWorker @AssistedInject constructor(
8787 if (orderId == null ) {
8888 Logger .error(" Missing orderId" , context = TAG )
8989 } else {
90- try {
91- Logger .info(" Open channel request for order $orderId " , context = TAG )
92- coreService.blocktank.open(orderId = orderId)
93- } catch (e: Exception ) {
94- Logger .error(" failed to open channel" , e, context = TAG )
90+ Logger .info(" Open channel request for order $orderId " , context = TAG )
91+ blocktankRepo.openChannel(orderId).onFailure { e ->
92+ Logger .error(" Failed to open channel" , e, context = TAG )
9593 bestAttemptContent = NotificationDetails (
9694 title = appContext.getString(R .string.notification_channel_open_failed_title),
9795 body = e.message ? : appContext.getString(R .string.notification_unknown_error),
You can’t perform that action at this time.
0 commit comments