Use new header method

This commit is contained in:
Paul Lorenz
2020-05-11 13:46:05 -04:00
parent 49610b6ffb
commit 0f144275c9
+2 -3
View File
@@ -333,9 +333,8 @@ func (proxy *ingressProxy) processUpdateBind(req *channel2.Message, ch channel2.
}
var cost *uint16
if costBytes, hasCost := req.Headers[edge.CostHeader]; hasCost {
updatedCost := binary.LittleEndian.Uint16(costBytes)
cost = &updatedCost
if costVal, hasCost := req.GetUint16Header(edge.CostHeader); hasCost {
cost = &costVal
}
var precedence *ctrl_pb.TerminatorPrecedence