check if forge daemon returned a protobuf
This commit is contained in:
parent
a433ef6309
commit
9392657f76
|
@ -53,6 +53,12 @@ func (f *Forge) submitPatchset(pset *Patchset) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newpb := NewPatchsets()
|
||||||
|
if err := newpb.UnmarshalTEXT(body); err != nil {
|
||||||
|
log.Info("forged DID NOT SEND BACK PROTOBUF")
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
test := strings.TrimSpace(string(body))
|
test := strings.TrimSpace(string(body))
|
||||||
lines := strings.Split(test, "\n")
|
lines := strings.Split(test, "\n")
|
||||||
count := 0
|
count := 0
|
||||||
|
|
Loading…
Reference in New Issue