Skip to content

Commit

Permalink
Presume all relays support EOSE at this point
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Jun 19, 2024
1 parent 673f1cd commit 0649b63
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions gossip-lib/src/overlord/minion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,18 +676,6 @@ impl Minion {

self.subscribe(filters, "temp_augments", job_id).await?;

if let Some(sub) = self.subscription_map.get_mut("temp_augments") {
if let Some(nip11) = &self.nip11 {
if !nip11.supports_nip(15) {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
} else {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
}

Ok(())
}

Expand Down Expand Up @@ -723,18 +711,6 @@ impl Minion {
))?;
} else {
self.subscribe(filters, "general_feed", job_id).await?;

if let Some(sub) = self.subscription_map.get_mut("general_feed") {
if let Some(nip11) = &self.nip11 {
if !nip11.supports_nip(15) {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
} else {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
}
}

Ok(())
Expand Down Expand Up @@ -788,19 +764,6 @@ impl Minion {

self.subscribe(filters, "giftwraps", job_id).await?;

// FIXME move this code into subscribe() function
if let Some(sub) = self.subscription_map.get_mut("giftwraps") {
if let Some(nip11) = &self.nip11 {
if !nip11.supports_nip(15) {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
} else {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
}

Ok(())
}

Expand All @@ -822,18 +785,6 @@ impl Minion {

self.subscribe(filters, "inbox_feed", job_id).await?;

if let Some(sub) = self.subscription_map.get_mut("inbox_feed") {
if let Some(nip11) = &self.nip11 {
if !nip11.supports_nip(15) {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
} else {
// Does not support EOSE. Set subscription to EOSE now.
sub.set_eose();
}
}

Ok(())
}

Expand Down

0 comments on commit 0649b63

Please sign in to comment.