Skip to content

Commit

Permalink
fix: CI fixes and resolved conflicts with master
Browse files Browse the repository at this point in the history
  • Loading branch information
etherhood committed Sep 9, 2024
1 parent 9151527 commit 046a4e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 31 deletions.
12 changes: 2 additions & 10 deletions trin-beacon/src/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,7 @@ async fn offer(
) -> Result<Value, String> {
match network
.overlay
.send_offer(
enr,
content_key.to_bytes(),
content_value.encode().to_vec(),
)
.send_offer(enr, content_key.to_bytes(), content_value.encode().to_vec())
.await
{
Ok(accept) => Ok(json!(AcceptInfo {
Expand All @@ -376,11 +372,7 @@ async fn trace_offer(
) -> Result<Value, String> {
match network
.overlay
.send_offer_trace(
enr,
content_key.to_bytes(),
content_value.encode().to_vec(),
)
.send_offer_trace(enr, content_key.to_bytes(), content_value.encode().to_vec())
.await
{
Ok(accept) => Ok(json!(accept)),
Expand Down
1 change: 0 additions & 1 deletion trin-beacon/src/storage.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use alloy_primitives::B256;
use alloy_primitives::Bytes;
use ethportal_api::{
consensus::fork::ForkName,
types::{
Expand Down
12 changes: 2 additions & 10 deletions trin-history/src/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,7 @@ async fn offer(
) -> Result<Value, String> {
match network
.overlay
.send_offer(
enr,
content_key.to_bytes(),
content_value.encode().to_vec(),
)
.send_offer(enr, content_key.to_bytes(), content_value.encode().to_vec())
.await
{
Ok(accept) => Ok(json!(AcceptInfo {
Expand All @@ -362,11 +358,7 @@ async fn trace_offer(
) -> Result<Value, String> {
match network
.overlay
.send_offer_trace(
enr,
content_key.to_bytes(),
content_value.encode().to_vec(),
)
.send_offer_trace(enr, content_key.to_bytes(), content_value.encode().to_vec())
.await
{
Ok(accept) => Ok(json!(accept)),
Expand Down
12 changes: 2 additions & 10 deletions trin-state/src/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,7 @@ async fn offer(
"Offer",
network
.overlay
.send_offer(
enr,
content_key.to_bytes(),
content_value.encode().to_vec(),
)
.send_offer(enr, content_key.to_bytes(), content_value.encode().to_vec())
.await
.map(|accept| AcceptInfo {
content_keys: accept.content_keys,
Expand All @@ -331,11 +327,7 @@ async fn trace_offer(
"TraceOffer",
network
.overlay
.send_offer_trace(
enr,
content_key.to_bytes(),
content_value.encode().to_vec(),
)
.send_offer_trace(enr, content_key.to_bytes(), content_value.encode().to_vec())
.await,
)
}
Expand Down

0 comments on commit 046a4e1

Please sign in to comment.