@@ -33,16 +33,24 @@ pub enum Error {
33
33
PersistenceFailed ,
34
34
/// A fee rate estimation update failed.
35
35
FeerateEstimationUpdateFailed ,
36
+ /// A fee rate estimation update timed out.
37
+ FeerateEstimationUpdateTimeout ,
36
38
/// A wallet operation failed.
37
39
WalletOperationFailed ,
40
+ /// A wallet operation timed out.
41
+ WalletOperationTimeout ,
38
42
/// A signing operation for transaction failed.
39
43
OnchainTxSigningFailed ,
40
44
/// A signing operation for message failed.
41
45
MessageSigningFailed ,
42
46
/// A transaction sync operation failed.
43
47
TxSyncFailed ,
48
+ /// A transaction sync operation timed out.
49
+ TxSyncTimeout ,
44
50
/// A gossip updating operation failed.
45
51
GossipUpdateFailed ,
52
+ /// A gossip updating operation timed out.
53
+ GossipUpdateTimeout ,
46
54
/// A liquidity request operation failed.
47
55
LiquidityRequestFailed ,
48
56
/// The given address is invalid.
@@ -111,11 +119,17 @@ impl fmt::Display for Error {
111
119
Self :: FeerateEstimationUpdateFailed => {
112
120
write ! ( f, "Failed to update fee rate estimates." )
113
121
} ,
122
+ Self :: FeerateEstimationUpdateTimeout => {
123
+ write ! ( f, "Updating fee rate estimates timed out." )
124
+ } ,
114
125
Self :: WalletOperationFailed => write ! ( f, "Failed to conduct wallet operation." ) ,
126
+ Self :: WalletOperationTimeout => write ! ( f, "A wallet operation timed out." ) ,
115
127
Self :: OnchainTxSigningFailed => write ! ( f, "Failed to sign given transaction." ) ,
116
128
Self :: MessageSigningFailed => write ! ( f, "Failed to sign given message." ) ,
117
129
Self :: TxSyncFailed => write ! ( f, "Failed to sync transactions." ) ,
130
+ Self :: TxSyncTimeout => write ! ( f, "Syncing transactions timed out." ) ,
118
131
Self :: GossipUpdateFailed => write ! ( f, "Failed to update gossip data." ) ,
132
+ Self :: GossipUpdateTimeout => write ! ( f, "Updating gossip data timed out." ) ,
119
133
Self :: LiquidityRequestFailed => write ! ( f, "Failed to request inbound liquidity." ) ,
120
134
Self :: InvalidAddress => write ! ( f, "The given address is invalid." ) ,
121
135
Self :: InvalidSocketAddress => write ! ( f, "The given network address is invalid." ) ,
0 commit comments