File tree Expand file tree Collapse file tree 2 files changed +36
-8
lines changed Expand file tree Collapse file tree 2 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -495,9 +495,16 @@ impl Actor for SenderAccount {
495
495
SenderAccountMessage :: UpdateAllocationIds ( allocation_ids) => {
496
496
// Create new sender allocations
497
497
for allocation_id in allocation_ids. difference ( & state. allocation_ids ) {
498
- state
498
+ if let Err ( error ) = state
499
499
. create_sender_allocation ( myself. clone ( ) , * allocation_id)
500
- . await ?;
500
+ . await
501
+ {
502
+ error ! (
503
+ %error,
504
+ %allocation_id,
505
+ "There was an error while creating Sender Allocation."
506
+ ) ;
507
+ }
501
508
}
502
509
503
510
// Remove sender allocations
@@ -627,9 +634,16 @@ impl Actor for SenderAccount {
627
634
return Ok ( ( ) ) ;
628
635
} ;
629
636
630
- state
637
+ if let Err ( error ) = state
631
638
. create_sender_allocation ( myself. clone ( ) , allocation_id)
632
- . await ?;
639
+ . await
640
+ {
641
+ error ! (
642
+ %error,
643
+ %allocation_id,
644
+ "Error while recreating Sender Allocation."
645
+ ) ;
646
+ }
633
647
}
634
648
_ => { }
635
649
}
Original file line number Diff line number Diff line change @@ -190,9 +190,16 @@ impl Actor for SenderAccountsManager {
190
190
SenderAccountsManagerMessage :: UpdateSenderAccounts ( target_senders) => {
191
191
// Create new sender accounts
192
192
for sender in target_senders. difference ( & state. sender_ids ) {
193
- state
193
+ if let Err ( e ) = state
194
194
. create_sender_account ( myself. get_cell ( ) , * sender, HashSet :: new ( ) )
195
- . await ?;
195
+ . await
196
+ {
197
+ error ! (
198
+ sender_address = %sender,
199
+ error = %e,
200
+ "There was an error while creating a sender account."
201
+ ) ;
202
+ }
196
203
}
197
204
198
205
// Remove sender accounts
@@ -255,9 +262,16 @@ impl Actor for SenderAccountsManager {
255
262
. remove ( & sender_id)
256
263
. unwrap_or ( HashSet :: new ( ) ) ;
257
264
258
- state
265
+ if let Err ( e ) = state
259
266
. create_sender_account ( myself. get_cell ( ) , sender_id, allocations)
260
- . await ?;
267
+ . await
268
+ {
269
+ error ! (
270
+ error = %e,
271
+ sender_address = %sender_id,
272
+ "There was an error while re-creating sender account."
273
+ ) ;
274
+ }
261
275
}
262
276
_ => { }
263
277
}
You can’t perform that action at this time.
0 commit comments