You've already forked The-API-Book
mirror of
https://github.com/twirl/The-API-Book.git
synced 2025-07-12 22:50:21 +02:00
style fix
This commit is contained in:
@ -130,10 +130,10 @@ With this approach, we can implement not only locks, but also various scenarios
|
||||
```typescript
|
||||
lock = await this.acquireLock(
|
||||
'offerFullView', '10s', {
|
||||
// Who is trying to acquire a lock
|
||||
// and for what reason
|
||||
reason: 'userSelectOffer',
|
||||
offer
|
||||
// Who is trying to acquire a lock
|
||||
// and for what reason
|
||||
reason: 'userSelectOffer',
|
||||
offer
|
||||
}
|
||||
);
|
||||
```
|
||||
|
@ -130,11 +130,11 @@ class SearchBoxComposer {
|
||||
```typescript
|
||||
lock = await this.acquireLock(
|
||||
'offerFullView', '10s', {
|
||||
// Добавляем описание,
|
||||
// кто и зачем пытается
|
||||
// выполнить блокировку
|
||||
reason: 'userSelectOffer',
|
||||
offer
|
||||
// Добавляем описание,
|
||||
// кто и зачем пытается
|
||||
// выполнить блокировку
|
||||
reason: 'userSelectOffer',
|
||||
offer
|
||||
}
|
||||
);
|
||||
```
|
||||
|
Reference in New Issue
Block a user