httpsched: rename internal const to be idiomatic
@@ -25,7 +25,7 @@ type StateError string
func (err StateError) Error() string { return string(err) }
var (
- errMissingMesosStreamId = httpcli.ProtocolError("missing Mesos-Stream-Id header expected with successful SUBSCRIBE")
+ errMissingStreamID = httpcli.ProtocolError("missing Mesos-Stream-Id header expected with successful SUBSCRIBE")
errAlreadySubscribed = StateError("already subscribed, cannot re-issue a SUBSCRIBE call")
)
@@ -131,7 +131,7 @@ func disconnectedFn(ctx context.Context, state *state) stateFn {
if mesosStreamID == "" {
resp.Body.Close()
resp = nil
- err = errMissingMesosStreamId
+ err = errMissingStreamID
}
}
return
