Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
General code cleanup
Browse files Browse the repository at this point in the history
Removes duplicate return in client/native.go

Removes useless TBD comment in control/runner.go

Modifies mock-file-grpc/main_test.go to load the correct plugin when
testing.
  • Loading branch information
IRCody committed Sep 9, 2016
1 parent 92d4272 commit 372cdb1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion control/plugin/client/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func (p *PluginNativeClient) Publish(metrics []core.Metric, config map[string]ct
err = p.connection.Call("Publisher.Publish", out, &reply)
close(done)
return err
return nil
}

func (p *PluginNativeClient) Process(metrics []core.Metric, config map[string]ctypes.ConfigValue) ([]core.Metric, error) {
Expand Down
1 change: 0 additions & 1 deletion control/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const (
MaxPluginRestartCount = 3
)

// TBD
type executablePlugin interface {
Run(time.Duration) (plugin.Response, error)
Kill() error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
)

var (
PluginName = "snap-plugin-publisher-mock-file"
PluginName = "snap-plugin-publisher-mock-file-grpc"
PluginType = "publisher"
SnapPath = os.ExpandEnv(os.Getenv("SNAP_PATH"))
PluginPath = path.Join(SnapPath, "plugin", PluginName)
Expand Down

0 comments on commit 372cdb1

Please sign in to comment.