summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
Diffstat (limited to 'send.go')
-rw-r--r--send.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/send.go b/send.go
index c6c9665..fff9ac4 100644
--- a/send.go
+++ b/send.go
@@ -12,7 +12,7 @@ import (
"go.wit.com/log"
)
-func sendPatches(pset *forgepb.Patchs) error {
+func sendPatches(pset *forgepb.Patchset) error {
var url string
url = me.urlbase + "/patchset"
msg, err := pset.Marshal()
@@ -91,7 +91,7 @@ func doRegister(newurl string) error {
return nil
}
-func getPatch(pbfile string) (*forgepb.Patchs, error) {
+func getPatch(pbfile string) (*forgepb.Patchset, error) {
url := me.urlbase + "/patchsetget?filename=" + pbfile
log.Info("getPatch() url", url)
body, err := httpPost(url, nil)
@@ -100,8 +100,8 @@ func getPatch(pbfile string) (*forgepb.Patchs, error) {
return nil, err
}
log.Info("getPatch() len(body)", len(body))
- var pset *forgepb.Patchs
- pset = new(forgepb.Patchs)
+ var pset *forgepb.Patchset
+ pset = new(forgepb.Patchset)
err = pset.Unmarshal(body)
if err != nil {
log.Info("Unmarshal failed", err)