Skip to content

Commit 0ef6bb3

Browse files
committed
style: 💄 run Prettier
1 parent fdd44ac commit 0ef6bb3

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

src/server/routes/util/index.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,14 @@ export const info =
3131
const Request = t.any;
3232
const Response = t.Object(
3333
t.prop('now', t.num),
34-
t.prop('stats', t.Object(
35-
t.prop('pubsub', t.Object(
36-
t.prop('channels', t.num),
37-
t.prop('observers', t.num),
38-
)),
39-
t.prop('presence', t.Object(
40-
t.prop('rooms', t.num),
41-
t.prop('entries', t.num),
42-
t.prop('observers', t.num),
43-
)),
44-
t.prop('blocks', t.Object(
45-
t.prop('blocks', t.num),
46-
t.prop('patches', t.num),
47-
)),
48-
)),
34+
t.prop(
35+
'stats',
36+
t.Object(
37+
t.prop('pubsub', t.Object(t.prop('channels', t.num), t.prop('observers', t.num))),
38+
t.prop('presence', t.Object(t.prop('rooms', t.num), t.prop('entries', t.num), t.prop('observers', t.num))),
39+
t.prop('blocks', t.Object(t.prop('blocks', t.num), t.prop('patches', t.num))),
40+
),
41+
),
4942
);
5043
const Func = t.Function(Request, Response).implement<MyCtx>(async () => {
5144
return {

src/server/services/PresenceService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class PresenceService {
9191
if (!room.size) this.rooms.delete(roomId);
9292
}
9393

94-
public stats(): {rooms: number, entries: number, observers: number} {
94+
public stats(): {rooms: number; entries: number; observers: number} {
9595
return {
9696
rooms: this.rooms.size,
9797
entries: [...this.rooms.values()].reduce((acc, v) => acc + v.size, 0),

src/server/services/PubSubService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class PubsubService {
2727
for (const observer of observers) observer.next(message);
2828
}
2929

30-
public stats(): {channels: number, observers: number} {
30+
public stats(): {channels: number; observers: number} {
3131
return {
3232
channels: this.observers.size,
3333
observers: [...this.observers.values()].reduce((acc, v) => acc + v.length, 0),

src/server/services/blocks/MemoryStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class MemoryStore implements types.Store {
7676
this.patches.delete(id);
7777
}
7878

79-
public stats(): {blocks: number, patches: number} {
79+
public stats(): {blocks: number; patches: number} {
8080
return {
8181
blocks: this.blocks.size,
8282
patches: [...this.patches.values()].reduce((acc, v) => acc + v.length, 0),

0 commit comments

Comments
 (0)