]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix incorrect expect message
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 11 Nov 2024 22:32:28 +0000 (16:32 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 11 Nov 2024 22:32:28 +0000 (16:32 -0600)
lightning/src/ln/channelmanager.rs

index 4ca95db11b51a1933be20af3d7aac57c9c8c800c..5a20c8e24449c7206f24a5820a828220234c9b7a 100644 (file)
@@ -9266,7 +9266,7 @@ where
                let duration_since_epoch = {
                        use std::time::SystemTime;
                        SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)
-                               .expect("for the foreseeable future this shouldn't happen")
+                               .expect("SystemTime::now() should be after SystemTime::UNIX_EPOCH")
                };
                #[cfg(not(feature = "std"))]
                let duration_since_epoch =