Less delays because no need for sneaky
This commit is contained in:
parent
c61f75cb02
commit
d41866b0ad
1 changed files with 2 additions and 6 deletions
|
|
@ -82,8 +82,7 @@ const CourtRank = {
|
||||||
[CourtSlot.Thirteen]: 1, // no one likes upstairs
|
[CourtSlot.Thirteen]: 1, // no one likes upstairs
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
const MIN_TYPING_DELAY_MS = 10
|
const TYPING_DELAY_MS = 5
|
||||||
const MAX_TYPING_DELAY_MS = 30
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class BaanReserverenService {
|
export class BaanReserverenService {
|
||||||
|
|
@ -114,10 +113,7 @@ export class BaanReserverenService {
|
||||||
|
|
||||||
// tryna be sneaky
|
// tryna be sneaky
|
||||||
private getTypingDelay() {
|
private getTypingDelay() {
|
||||||
return (
|
return TYPING_DELAY_MS
|
||||||
(MAX_TYPING_DELAY_MS - MIN_TYPING_DELAY_MS) * Math.random() +
|
|
||||||
MIN_TYPING_DELAY_MS
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async handleError() {
|
private async handleError() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue