mirror of
https://github.com/block/buzz.git
synced 2026-11-08 10:21:46 +00:00
style(relay): run cargo fmt
Co-authored-by: Will Pfleger <wpfleger@squareup.com> Signed-off-by: Will Pfleger <wpfleger@squareup.com>
This commit is contained in:
parent
275ad4be4a
commit
f2b5d6015a
@@ -593,10 +593,8 @@ pub async fn count_events(
|
||||
match state.db.query_events(&q).await {
|
||||
Ok(stored_events) => {
|
||||
for se in stored_events {
|
||||
if !buzz_core::filter::filters_match(
|
||||
std::slice::from_ref(filter),
|
||||
&se,
|
||||
) {
|
||||
if !buzz_core::filter::filters_match(std::slice::from_ref(filter), &se)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if crate::handlers::req::is_author_only_event(&se.event, &pubkey_bytes)
|
||||
@@ -642,10 +640,8 @@ pub async fn count_events(
|
||||
match state.db.query_events(&query).await {
|
||||
Ok(stored_events) => {
|
||||
for se in stored_events {
|
||||
if !buzz_core::filter::filters_match(
|
||||
std::slice::from_ref(filter),
|
||||
&se,
|
||||
) {
|
||||
if !buzz_core::filter::filters_match(std::slice::from_ref(filter), &se)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if crate::handlers::req::is_author_only_event(&se.event, &pubkey_bytes)
|
||||
|
||||
@@ -120,10 +120,8 @@ pub async fn handle_count(
|
||||
match state.db.query_events(&q).await {
|
||||
Ok(stored_events) => {
|
||||
for se in stored_events {
|
||||
if !buzz_core::filter::filters_match(
|
||||
std::slice::from_ref(filter),
|
||||
&se,
|
||||
) {
|
||||
if !buzz_core::filter::filters_match(std::slice::from_ref(filter), &se)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if is_author_only_event(&se.event, &pubkey_bytes) {
|
||||
@@ -173,10 +171,8 @@ pub async fn handle_count(
|
||||
match state.db.query_events(&query).await {
|
||||
Ok(stored_events) => {
|
||||
for se in stored_events {
|
||||
if !buzz_core::filter::filters_match(
|
||||
std::slice::from_ref(filter),
|
||||
&se,
|
||||
) {
|
||||
if !buzz_core::filter::filters_match(std::slice::from_ref(filter), &se)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if is_author_only_event(&se.event, &pubkey_bytes) {
|
||||
|
||||
Reference in New Issue
Block a user