diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index c4c7e8c1..87e00faf 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -310,7 +310,7 @@ func sendTo(ns *netsender.Sender) error { } } - _, reconfig, err := ns.Send(netsender.RequestPoll, inputs, nil) + _, reconfig, err := ns.Send(netsender.RequestPoll, inputs) if err != nil { return err } diff --git a/revid/senders.go b/revid/senders.go index b9bfa471..dd4b31ca 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -133,13 +133,11 @@ func (s *httpSender) load(c *ring.Chunk) error { } func (s *httpSender) send() error { - pins := netsender.MakePins("V0","") + pins := netsender.MakePins("V0", "") pins[0].Value = len(s.buf) - var payload netsender.Payload - payload.Name = "V0" - payload.Data = s.buf - payload.MimeType = "video/mp2t" - _, _, err := s.client.Send(netsender.RequestPoll, pins, &payload) + pins[0].Data = s.buf + pins[0].MimeType = "video/mp2t" + _, _, err := s.client.Send(netsender.RequestPoll, pins) if err != nil { return err }