Skip to content

Commit 1f09363

Browse files
committed
chore: disable biome in lefthook (#3519)
1 parent ba1623c commit 1f09363

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

engine/packages/engine/tests/common/actors.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,12 @@ pub async fn ping_actor_websocket_via_guard(guard_port: u16, actor_id: &str) ->
440440
// URL encode the actor ID since colons are not allowed in WebSocket protocol names
441441
request.headers_mut().insert(
442442
"Sec-WebSocket-Protocol",
443-
format!("rivet, rivet_target.actor, rivet_actor.{}", urlencoding::encode(&actor_id))
444-
.parse()
445-
.unwrap(),
443+
format!(
444+
"rivet, rivet_target.actor, rivet_actor.{}",
445+
urlencoding::encode(&actor_id)
446+
)
447+
.parse()
448+
.unwrap(),
446449
);
447450

448451
// Connect to WebSocket

engine/packages/pegboard-gateway/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ use http_body_util::{BodyExt, Full};
77
use hyper::{Request, Response, StatusCode};
88
use rivet_error::*;
99
use rivet_guard_core::{
10+
WebSocketHandle,
1011
custom_serve::{CustomServeTrait, HibernationResult},
1112
errors::{ServiceUnavailable, WebSocketServiceUnavailable},
12-
proxy_service::{is_ws_hibernate, ResponseBody},
13+
proxy_service::{ResponseBody, is_ws_hibernate},
1314
request_context::RequestContext,
1415
websocket_handle::WebSocketReceiver,
15-
WebSocketHandle,
1616
};
1717
use rivet_runner_protocol as protocol;
1818
use rivet_util::serde::HashableMap;
1919
use std::{sync::Arc, time::Duration};
20-
use tokio::sync::{watch, Mutex};
20+
use tokio::sync::{Mutex, watch};
2121
use tokio_tungstenite::tungstenite::{
22-
protocol::frame::{coding::CloseCode, CloseFrame},
2322
Message,
23+
protocol::frame::{CloseFrame, coding::CloseCode},
2424
};
2525

2626
use crate::shared_state::{InFlightRequestHandle, SharedState};

engine/packages/pegboard-gateway/src/shared_state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use anyhow::Result;
22
use gas::prelude::*;
33
use rivet_guard_core::errors::WebSocketServiceTimeout;
4-
use rivet_runner_protocol::{self as protocol, versioned, PROTOCOL_VERSION};
5-
use scc::{hash_map::Entry, HashMap};
4+
use rivet_runner_protocol::{self as protocol, PROTOCOL_VERSION, versioned};
5+
use scc::{HashMap, hash_map::Entry};
66
use std::{
77
ops::Deref,
88
sync::Arc,
@@ -12,7 +12,7 @@ use tokio::sync::{mpsc, watch};
1212
use universalpubsub::{NextOutput, PubSub, PublishOpts, Subscriber};
1313
use vbare::OwnedVersionedData;
1414

15-
use crate::{metrics, WebsocketPendingLimitReached};
15+
use crate::{WebsocketPendingLimitReached, metrics};
1616

1717
const GC_INTERVAL: Duration = Duration::from_secs(15);
1818
const TUNNEL_PING_TIMEOUT: i64 = util::duration::seconds(30);

lefthook.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ pre-commit:
55
run: cargo fmt --all
66
tags: formatting
77
stage_fixed: true
8-
biome-fmt:
9-
run: pnpm fmt
10-
tags: formatting
11-
stage_fixed: true
8+
# TODO: Bring this back after big dumb errors are fixed
9+
# biome-fmt:
10+
# run: pnpm fmt
11+
# tags: formatting
12+
# stage_fixed: true
1213

0 commit comments

Comments
 (0)