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
|
```typescript
|
||||||
lock = await this.acquireLock(
|
lock = await this.acquireLock(
|
||||||
'offerFullView', '10s', {
|
'offerFullView', '10s', {
|
||||||
// Who is trying to acquire a lock
|
// Who is trying to acquire a lock
|
||||||
// and for what reason
|
// and for what reason
|
||||||
reason: 'userSelectOffer',
|
reason: 'userSelectOffer',
|
||||||
offer
|
offer
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -130,11 +130,11 @@ class SearchBoxComposer {
|
|||||||
```typescript
|
```typescript
|
||||||
lock = await this.acquireLock(
|
lock = await this.acquireLock(
|
||||||
'offerFullView', '10s', {
|
'offerFullView', '10s', {
|
||||||
// Добавляем описание,
|
// Добавляем описание,
|
||||||
// кто и зачем пытается
|
// кто и зачем пытается
|
||||||
// выполнить блокировку
|
// выполнить блокировку
|
||||||
reason: 'userSelectOffer',
|
reason: 'userSelectOffer',
|
||||||
offer
|
offer
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user