no cache again
This commit is contained in:
parent
6ddba5f106
commit
c1d28a0a43
@ -211,6 +211,8 @@ impl Web3ProxyApp {
|
|||||||
// if no tiers are synced, fallback to privates
|
// if no tiers are synced, fallback to privates
|
||||||
// TODO: think more about this loop.
|
// TODO: think more about this loop.
|
||||||
loop {
|
loop {
|
||||||
|
// todo: bring back this caching
|
||||||
|
/*
|
||||||
let best_block_hash = self
|
let best_block_hash = self
|
||||||
.balanced_rpcs
|
.balanced_rpcs
|
||||||
.get_synced_rpcs()
|
.get_synced_rpcs()
|
||||||
@ -231,6 +233,7 @@ impl Web3ProxyApp {
|
|||||||
// TODO: return a reference in the other places so that this works without a clone?
|
// TODO: return a reference in the other places so that this works without a clone?
|
||||||
return Ok(cached.to_owned());
|
return Ok(cached.to_owned());
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
match self.balanced_rpcs.next_upstream_server().await {
|
match self.balanced_rpcs.next_upstream_server().await {
|
||||||
Ok(active_request_handle) => {
|
Ok(active_request_handle) => {
|
||||||
@ -251,6 +254,7 @@ impl Web3ProxyApp {
|
|||||||
error: None,
|
error: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
// TODO: small race condidition here. parallel requests with the same query will both be saved to the cache
|
// TODO: small race condidition here. parallel requests with the same query will both be saved to the cache
|
||||||
let mut response_cache = self.response_cache.write();
|
let mut response_cache = self.response_cache.write();
|
||||||
|
|
||||||
@ -262,6 +266,7 @@ impl Web3ProxyApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
drop(response_cache);
|
drop(response_cache);
|
||||||
|
*/
|
||||||
|
|
||||||
response
|
response
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user