plugin: fix typos

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 6da6e775
......@@ -7,7 +7,7 @@ import (
format "gx/ipfs/QmYNyRZJBUYPNrLszFmrBrPJbsBh2vMsefz5gnDpB5M1P6/go-ipld-format"
)
func initalize(plugins []plugin.Plugin) error {
func initialize(plugins []plugin.Plugin) error {
for _, p := range plugins {
err := p.Init()
if err != nil {
......
......@@ -15,7 +15,7 @@ var loadPluginsFunc = func(string) ([]plugin.Plugin, error) {
return nil, nil
}
// LoadPlugins loads and initalizes plugins.
// LoadPlugins loads and initializes plugins.
func LoadPlugins(pluginDir string) ([]plugin.Plugin, error) {
plMap := make(map[string]plugin.Plugin)
for _, v := range preloadPlugins {
......@@ -43,7 +43,7 @@ func LoadPlugins(pluginDir string) ([]plugin.Plugin, error) {
pls = append(pls, v)
}
err = initalize(pls)
err = initialize(pls)
if err != nil {
return nil, err
}
......
......@@ -11,10 +11,10 @@ import (
)
func init() {
loadPluginsFunc = linxuLoadFunc
loadPluginsFunc = linuxLoadFunc
}
func linxuLoadFunc(pluginDir string) ([]iplugin.Plugin, error) {
func linuxLoadFunc(pluginDir string) ([]iplugin.Plugin, error) {
var plugins []iplugin.Plugin
err := filepath.Walk(pluginDir, func(fi string, info os.FileInfo, err error) error {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment