mirror of
https://github.com/twirl/The-API-Book.git
synced 2025-05-31 22:09:37 +02:00
style fix
This commit is contained in:
parent
9e534d3a47
commit
e23823f014
@ -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
|
||||
}
|
||||
);
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user