Panic on unknown user event type

This should never happen. Complain loudly if it does.
This commit is contained in:
Simon Ser 2021-04-13 13:08:48 +02:00
parent adb4b300dc
commit ef902fdc28

View File

@ -583,7 +583,7 @@ func (u *user) run() {
}
return
default:
u.logger.Printf("received unknown event type: %T", e)
panic(fmt.Sprintf("received unknown event type: %T", e))
}
}
}