Merge branch 'master' into add-nats-support

This commit is contained in:
Neil Alexander 2021-11-16 12:35:50 +00:00
commit aac7e4187e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
12 changed files with 115 additions and 24 deletions

View file

@ -78,6 +78,11 @@ func (t *OutputCrossSigningKeyUpdateConsumer) onMessage(msg *sarama.ConsumerMess
logrus.WithError(err).Errorf("failed to read device message from key change topic")
return nil
}
if m.OutputCrossSigningKeyUpdate == nil {
// This probably shouldn't happen but stops us from panicking if we come
// across an update that doesn't satisfy either types.
return nil
}
switch m.Type {
case api.TypeCrossSigningUpdate:
return t.onCrossSigningMessage(m)