Skip to content

Commit 6ec6a09

Browse files
committed
syntax
1 parent bc3060f commit 6ec6a09

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/platform/app/app_roles.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ every time a ``box.status`` system event is broadcasted, or after the ``apply``
7272
If multiple custom roles have the ``on_event`` callback defined, these callbacks are called one after another in the order
7373
defined by roles dependencies.
7474

75-
The ``on_event`` callback provides 3 arguments, when it is called:
75+
The ``on_event`` callback returns 3 arguments, when it is called:
7676

7777
- ``config``, which contains the configuration of the role;
7878

79-
- ``key``, which reflects the trigger event:
79+
- ``key``, which reflects the trigger event and is set to:
8080

8181
- ``config.apply`` if the callback was triggered by a configuration update;
8282

@@ -87,11 +87,11 @@ If the callback is triggered by a configuration update, the ``value`` shows the
8787

8888
.. NOTE::
8989

90-
- All ``on_event`` callbacks with the ``config.apply`` key are executed as a part of the configuration process.
91-
Process statuses ``ready`` or ``check_warnings`` are reached only after all such ``on_event`` callbacks are done.
90+
- All ``on_event`` callbacks with the ``config.apply`` key are executed as a part of the configuration process.
91+
Process statuses ``ready`` or ``check_warnings`` are reached only after all such ``on_event`` callbacks are done.
9292

93-
- All ``on_event`` callbacks are executed inside of a ``pcall``. If an error is raised for a callback, it is logged
94-
with the ``error`` level and the series execution continues.
93+
- All ``on_event`` callbacks are executed inside of a ``pcall``. If an error is raised for a callback,
94+
it is logged with the ``error`` level and the series execution continues.
9595

9696
Creating a custom role includes the following steps:
9797

0 commit comments

Comments
 (0)