diff options
| author | Jeff Carr <[email protected]> | 2025-09-08 12:42:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-08 12:42:24 -0500 |
| commit | f23109dce8f5657bd10e9e4dcbfe58b8beae20e1 (patch) | |
| tree | 4df710249d9b12a6ec1f9f6723c6fe0a028cb9a6 /handlePatches.go | |
| parent | e1411dd1e93914ba240f1813e6922ae87ef98653 (diff) | |
fix the build
Diffstat (limited to 'handlePatches.go')
| -rw-r--r-- | handlePatches.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/handlePatches.go b/handlePatches.go index 966f709..2c5ce83 100644 --- a/handlePatches.go +++ b/handlePatches.go @@ -41,7 +41,6 @@ func sendPendingPatches(pb *forgepb.Patches, reqPB *httppb.HttpRequest) *forgepb func sendPendingPatchsets(pb *forgepb.Patchsets, reqPB *httppb.HttpRequest) *forgepb.Patchsets { allPatchsetsPB := new(forgepb.Patchsets) for pset := range me.forge.Patchsets.IterAll() { - reqPB.Errors = append(reqPB.Errors, log.Sprintf("adding %s with len=%d", pset.Name, pset.Patches.Len())) allPatchsetsPB.Append(pset) } return allPatchsetsPB @@ -65,19 +64,19 @@ func handlePatches(w http.ResponseWriter, pb *forgepb.Patches) error { func makeReposPB(reqPB *httppb.HttpRequest) (*gitpb.Repos, error) { pb := gitpb.NewRepos() - err := pb.Unmarshal(reqPB.Body) + err := pb.Unmarshal(reqPB.ServerData) return pb, err } func makePatchesPB(reqPB *httppb.HttpRequest) (*forgepb.Patches, error) { pb := forgepb.NewPatches() - err := pb.Unmarshal(reqPB.Body) + err := pb.Unmarshal(reqPB.ServerData) return pb, err } func makePatchsetsPB(reqPB *httppb.HttpRequest) (*forgepb.Patchsets, error) { pb := forgepb.NewPatchsets() - err := pb.Unmarshal(reqPB.Body) + err := pb.Unmarshal(reqPB.ServerData) return pb, err } |
