mirror of
https://github.com/emqx/neuron.git
synced 2026-10-21 08:45:47 +08:00
Update restful set license handler to sent update license event
This commit is contained in:
@@ -98,6 +98,14 @@ static int set_license(const char *lic_str)
|
||||
|
||||
if (0 > rename(fname_tmp, LICENSE_PATH)) {
|
||||
rv = NEU_ERR_EINTERNAL;
|
||||
goto final;
|
||||
}
|
||||
|
||||
neu_plugin_t *plugin = neu_rest_get_plugin();
|
||||
rv = neu_plugin_notify_event_update_license(
|
||||
plugin, neu_plugin_get_event_id(plugin));
|
||||
if (0 != rv) {
|
||||
rv = NEU_ERR_EINTERNAL;
|
||||
}
|
||||
|
||||
final:
|
||||
|
||||
Reference in New Issue
Block a user