Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb660daf

Browse files
committed
Fixed type conversion interface error
1 parent424cca8 commitb660daf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎plugin/grpc.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
// PluginGRPC is the Gaia plugin interface used for communication
1212
// with the plugin.
1313
typePluginGRPCinterface {
14-
GetJobs() (*proto.Plugin_GetJobsClient,error)
15-
ExecuteJob(job*proto.Job) (*proto.Empty,error)
14+
GetJobs() (proto.Plugin_GetJobsClient,error)
15+
ExecuteJob(job*proto.Job) (*proto.JobResult,error)
1616
}
1717

1818
// GRPCClient represents gRPC client

‎plugin/plugin.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
const (
14-
pluginMapKey="plugin"
14+
pluginMapKey="Plugin"
1515
)
1616

1717
varhandshake= plugin.HandshakeConfig{
@@ -96,7 +96,7 @@ func (p *Plugin) GetJobs() ([]gaia.Job, error) {
9696

9797
// receive all jobs
9898
for {
99-
job,err:=(*stream).Recv()
99+
job,err:=stream.Recv()
100100

101101
// Got all jobs
102102
iferr==io.EOF {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp