[MM-40935] Add OnInstall() plugin hook (#19499)

Этот коммит содержится в:
Ben Schumacher
2022-02-09 20:29:00 +01:00
коммит произвёл GitHub
родитель 2d986ef920
Коммит 6dab9eadf8
9 изменённых файлов: 102 добавлений и 11 удалений

Просмотреть файл

@@ -193,3 +193,10 @@ func (hooks *hooksTimerLayer) RunDataRetention(nowTime, batchSize int64) (int64,
hooks.recordTime(startTime, "RunDataRetention", _returnsB == nil)
return _returnsA, _returnsB
}
func (hooks *hooksTimerLayer) OnInstall(c *Context, event model.OnInstallEvent) error {
startTime := timePkg.Now()
_returnsA := hooks.hooksImpl.OnInstall(c, event)
hooks.recordTime(startTime, "OnInstall", _returnsA == nil)
return _returnsA
}