Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions belt/queue-remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ func NewRemoteQueue(addr string) (*RemoteQueue, error) {
}, nil
}

func (q *RemoteQueue) Push(*data.Execution) error {
panic("unimplemented")
func (q *RemoteQueue) Push(exec *data.Execution) error {
var abc interface{}
err := q.c.Call("Queue.Push", exec, abc)

return err
}

func (q *RemoteQueue) Pop(wait bool) (*Execution, error) {
Expand Down
5 changes: 5 additions & 0 deletions rpc/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import (

type Queue struct{}

func (q *Queue) Push(exec *data.Execution, reply *interface{}) error {
err := belt.Queue.Push(exec)
return err
}

func (q *Queue) Pop(args int, reply *data.Execution) error {
exec, err := belt.Queue.Pop(false)
if err != nil {
Expand Down