* Fix initialism errors

* Revert some changes and regenerate file

* Update client4.go

* Update group_test.go

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Haardik Dharma
2021-03-23 01:08:19 +05:30
коммит произвёл GitHub
родитель 0aa6499a48
Коммит ea61458f16
26 изменённых файлов: 1146 добавлений и 1146 удалений

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

@@ -89,8 +89,8 @@ func newSupervisor(pluginInfo *model.BundleInfo, apiImpl API, parentLogger *mlog
return nil, err
}
for _, hookName := range impl {
if hookId, ok := hookNameToId[hookName]; ok {
sup.implemented[hookId] = true
if hookID, ok := hookNameToId[hookName]; ok {
sup.implemented[hookID] = true
}
}
@@ -141,8 +141,8 @@ func (sup *supervisor) Ping() error {
return client.Ping()
}
func (sup *supervisor) Implements(hookId int) bool {
func (sup *supervisor) Implements(hookID int) bool {
sup.lock.RLock()
defer sup.lock.RUnlock()
return sup.implemented[hookId]
return sup.implemented[hookID]
}