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
|
||||
} as const
|
||||
|
||||
const MIN_TYPING_DELAY_MS = 10
|
||||
const MAX_TYPING_DELAY_MS = 30
|
||||
const TYPING_DELAY_MS = 5
|
||||
|
||||
@Injectable()
|
||||
export class BaanReserverenService {
|
||||
|
|
@ -114,10 +113,7 @@ export class BaanReserverenService {
|
|||
|
||||
// tryna be sneaky
|
||||
private getTypingDelay() {
|
||||
return (
|
||||
(MAX_TYPING_DELAY_MS - MIN_TYPING_DELAY_MS) * Math.random() +
|
||||
MIN_TYPING_DELAY_MS
|
||||
)
|
||||
return TYPING_DELAY_MS
|
||||
}
|
||||
|
||||
private async handleError() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue