mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix: review comments
Signed-off-by: Isma <71719097+Doozers@users.noreply.github.com>
This commit is contained in:
parent
9eef30aa38
commit
baf56d0dd0
3 changed files with 3 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -53,4 +53,3 @@ tests/spec-tests/
|
|||
#pgeth
|
||||
|
||||
!plugin/.gitkeep
|
||||
plugins/*/
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ func (p *PluginEngine) Version(ctx context.Context) error {
|
|||
var plugins []*Plugin
|
||||
|
||||
// load monitoring plugin
|
||||
if pluginMonitoringDirectory := os.Getenv("PGETH_MONITORING_CONFIG"); len(pluginMonitoringDirectory) != 0 {
|
||||
monitoringDetails, err := p.loadPluginDetails(pluginMonitoringDirectory)
|
||||
if pluginConfigFile := os.Getenv("PGETH_MONITORING_CONFIG"); len(pluginConfigFile) != 0 {
|
||||
monitoringDetails, err := p.loadPluginDetails(pluginConfigFile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -68,12 +68,11 @@ func (p *PluginEngine) Version(ctx context.Context) error {
|
|||
})
|
||||
}
|
||||
|
||||
errChan := make(chan error)
|
||||
|
||||
for _, plug := range plugins {
|
||||
plug.Version()
|
||||
}
|
||||
|
||||
errChan := make(chan error)
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
|
|
@ -111,7 +110,6 @@ func (p *PluginEngine) Start(ctx context.Context) error {
|
|||
}
|
||||
|
||||
errChan := make(chan error)
|
||||
|
||||
for _, plug := range plugins {
|
||||
go func(_plug *Plugin) {
|
||||
defer func() {
|
||||
|
|
|
|||
1
plugins/pgeth-monitoring/.gitignore
vendored
1
plugins/pgeth-monitoring/.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
plugin.so
|
||||
Loading…
Reference in a new issue