Skip to content

Commit d5c37fa

Browse files
author
Septias
committed
fix rebase
1 parent fffa839 commit d5c37fa

File tree

4 files changed

+27
-43
lines changed

4 files changed

+27
-43
lines changed

deny.toml

+10-10
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ skip = [
3333
{ name = "ed25519-dalek", version = "1.0.1" },
3434
{ name = "ed25519", version = "1.5.3" },
3535
{ name = "event-listener", version = "2.5.3" },
36-
{ name = "fd-lock", version = "3.0.13" },
36+
{ name = "fd-lock", version = "3.0.13" },
3737
{ name = "getrandom", version = "<0.2" },
38-
{ name = "h2", version = "0.3.22" },
39-
{ name = "http-body", version = "0.4.5" },
40-
{ name = "http", version = "0.2.11" },
41-
{ name = "hyper", version = "0.14.27" },
42-
{ name = "idna", version = "0.4.0" },
38+
{ name = "h2", version = "0.3.22" },
39+
{ name = "http-body", version = "0.4.5" },
40+
{ name = "http", version = "0.2.11" },
41+
{ name = "hyper", version = "0.14.27" },
42+
{ name = "idna", version = "0.4.0" },
4343
{ name = "pem-rfc7468", version = "0.6.0" },
4444
{ name = "pkcs8", version = "0.9.0" },
4545
{ name = "quick-error", version = "<2.0" },
@@ -60,14 +60,14 @@ skip = [
6060
{ name = "time", version = "<0.3" },
6161
{ name = "untrusted", version = "0.7.1" },
6262
{ name = "wasi", version = "<0.11" },
63-
{ name = "windows_aarch64_gnullvm", version = "<0.52" },
63+
{ name = "windows_aarch64_gnullvm", version = "<0.52" },
6464
{ name = "windows_aarch64_msvc", version = "<0.52" },
6565
{ name = "windows_i686_gnu", version = "<0.52" },
6666
{ name = "windows_i686_msvc", version = "<0.52" },
67-
{ name = "windows-sys", version = "<0.52" },
68-
{ name = "windows-targets", version = "<0.52" },
67+
{ name = "windows-sys", version = "<0.52" },
68+
{ name = "windows-targets", version = "<0.52" },
6969
{ name = "windows", version = "0.32.0" },
70-
{ name = "windows_x86_64_gnullvm", version = "<0.52" },
70+
{ name = "windows_x86_64_gnullvm", version = "<0.52" },
7171
{ name = "windows_x86_64_gnu", version = "<0.52" },
7272
{ name = "windows_x86_64_msvc", version = "<0.52" },
7373
]

src/peer_channels.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ impl Context {
2020
let secret_key: SecretKey = self.get_or_create_iroh_keypair().await?;
2121

2222
if self.endpoint.lock().await.is_some() {
23-
warn!(self, "Tried to create gossip even tough there still exists an instance");
23+
warn!(
24+
self,
25+
"Tried to create gossip even tough there still exists an instance"
26+
);
2427
return Ok(());
2528
}
2629

@@ -38,7 +41,6 @@ impl Context {
3841
.bind(0)
3942
.await?;
4043

41-
4244
// create gossip
4345
let my_addr = endpoint.my_addr().await?;
4446
let gossip = Gossip::from_endpoint(endpoint.clone(), Default::default(), &my_addr.info);

src/sql/migrations.rs

+8-29
Original file line numberDiff line numberDiff line change
@@ -762,35 +762,6 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
762762
)
763763
.await?;
764764
}
765-
if dbversion < 105 {
766-
// Create UNIQUE uid column and drop unused update_item_read column.
767-
sql.execute_migration(
768-
r#"CREATE TABLE new_msgs_status_updates (
769-
id INTEGER PRIMARY KEY AUTOINCREMENT,
770-
msg_id INTEGER,
771-
update_item TEXT DEFAULT '',
772-
uid TEXT UNIQUE
773-
);
774-
INSERT OR IGNORE INTO new_msgs_status_updates SELECT
775-
id, msg_id, update_item, NULL
776-
FROM msgs_status_updates;
777-
DROP TABLE msgs_status_updates;
778-
ALTER TABLE new_msgs_status_updates RENAME TO msgs_status_updates;
779-
CREATE INDEX msgs_status_updates_index1 ON msgs_status_updates (msg_id);
780-
CREATE INDEX msgs_status_updates_index2 ON msgs_status_updates (uid);
781-
"#,
782-
105,
783-
)
784-
.await?;
785-
}
786-
787-
if dbversion < 106 {
788-
sql.execute_migration(
789-
"CREATE TABLE iroh_gossip_peers (topic TEXT NOT NULL, public_key TEXT NOT NULL)",
790-
106,
791-
)
792-
.await?;
793-
}
794765

795766
if dbversion < 105 {
796767
// Create UNIQUE uid column and drop unused update_item_read column.
@@ -863,6 +834,14 @@ CREATE INDEX msgs_status_updates_index2 ON msgs_status_updates (uid);
863834
.await?;
864835
}
865836

837+
if dbversion < 108 {
838+
sql.execute_migration(
839+
"CREATE TABLE iroh_gossip_peers (topic TEXT NOT NULL, public_key TEXT NOT NULL)",
840+
108,
841+
)
842+
.await?;
843+
}
844+
866845
let new_version = sql
867846
.get_raw_config_int(VERSION_CFG)
868847
.await?

src/webxdc.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1731,9 +1731,12 @@ mod tests {
17311731
)
17321732
.await?;
17331733
alice.flush_status_updates().await?;
1734-
1734+
17351735
// Setting ephemeral should noot prepare a message
1736-
assert!(&alice.pop_sent_msg_opt(Duration::from_secs(1)).await.is_none());
1736+
assert!(&alice
1737+
.pop_sent_msg_opt(Duration::from_secs(1))
1738+
.await
1739+
.is_none());
17371740
Ok(())
17381741
}
17391742

0 commit comments

Comments
 (0)