Skip to content

Commit

Permalink
Fixed type conversion interface error
Browse files Browse the repository at this point in the history
  • Loading branch information
michelvocks committed Mar 6, 2018
1 parent 424cca8 commit b660daf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
// PluginGRPC is the Gaia plugin interface used for communication
// with the plugin.
type PluginGRPC interface {
GetJobs() (*proto.Plugin_GetJobsClient, error)
ExecuteJob(job *proto.Job) (*proto.Empty, error)
GetJobs() (proto.Plugin_GetJobsClient, error)
ExecuteJob(job *proto.Job) (*proto.JobResult, error)
}

// GRPCClient represents gRPC client
Expand Down
4 changes: 2 additions & 2 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
pluginMapKey = "plugin"
pluginMapKey = "Plugin"
)

var handshake = plugin.HandshakeConfig{
Expand Down Expand Up @@ -96,7 +96,7 @@ func (p *Plugin) GetJobs() ([]gaia.Job, error) {

// receive all jobs
for {
job, err := (*stream).Recv()
job, err := stream.Recv()

// Got all jobs
if err == io.EOF {
Expand Down

0 comments on commit b660daf

Please sign in to comment.