Skip to content

Commit ad4dcfa

Browse files
committed
Updates by comments
1 parent 7b0a985 commit ad4dcfa

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/platform/app/app_roles.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ A custom application role is an object which implements custom functions or logi
6868
For example, a logging role can be created to add logging functionality on top of the built-in one.
6969

7070
Since version :doc:`3.4.0 </release/3.4.0>`, you can define an ``on_event`` callback for custom roles. The ``on_event`` callback is called
71-
every time a ``box.status`` system event is broadcasted, or after the ``apply`` action of the configuration update is finished.
71+
every time a ``box.status`` system event is broadcasted.
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

@@ -111,11 +111,10 @@ As a result, a role module should return an object that has corresponding functi
111111
stop = function() -- ... -- end,
112112
dependencies = { -- ... -- },
113113
on_event = function(config, key, value)
114-
local log = require('log')
115-
116-
log.info('roles_cfg.my_role.foo: ' .. config.foo)
117-
log.info('on_event is triggered by ' .. key)
118-
log.info('is_ro: ' .. value.is_ro)
114+
local log = require('log')
115+
log.info('roles_cfg.my_role.foo: ' .. config.foo)
116+
log.info('on_event is triggered by ' .. key)
117+
log.info('is_ro: ' .. value.is_ro)
119118
end,
120119
}
121120

0 commit comments

Comments
 (0)