mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(process_tracker): make long standing payments failed (#2380)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
		| @ -695,11 +695,6 @@ pub async fn create_event_and_trigger_outgoing_webhook<W: types::OutgoingWebhook | ||||
|     }?; | ||||
|  | ||||
|     if state.conf.webhooks.outgoing_enabled { | ||||
|         let arbiter = actix::Arbiter::try_current() | ||||
|             .ok_or(errors::ApiErrorResponse::WebhookProcessingFailure) | ||||
|             .into_report() | ||||
|             .attach_printable("arbiter retrieval failure")?; | ||||
|  | ||||
|         let outgoing_webhook = api::OutgoingWebhook { | ||||
|             merchant_id: merchant_account.merchant_id.clone(), | ||||
|             event_id: event.event_id, | ||||
| @ -708,7 +703,9 @@ pub async fn create_event_and_trigger_outgoing_webhook<W: types::OutgoingWebhook | ||||
|             timestamp: event.created_at, | ||||
|         }; | ||||
|  | ||||
|         arbiter.spawn(async move { | ||||
|         // Using a tokio spawn here and not arbiter because not all caller of this function | ||||
|         // may have an actix arbiter | ||||
|         tokio::spawn(async move { | ||||
|             let result = | ||||
|                 trigger_webhook_to_merchant::<W>(merchant_account, outgoing_webhook, &state).await; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat