logger.Fatal("Match join marker deadline must be >= 1",zap.Int("match.join_marker_deadline_ms",config.GetMatch().JoinMarkerDeadlineMs))
}
ifconfig.GetMatch().MaxEmptySec<0{
logger.Fatal("Match max idle seconds must be >= 0",zap.Int("match.max_empty_sec",config.GetMatch().MaxEmptySec))
}
ifconfig.GetTracker().EventQueueSize<1{
logger.Fatal("Tracker presence event queue size must be >= 1",zap.Int("tracker.event_queue_size",config.GetTracker().EventQueueSize))
}
@@ -646,6 +649,7 @@ type MatchConfig struct {
JoinAttemptQueueSizeint`yaml:"join_attempt_queue_size" json:"join_attempt_queue_size" usage:"Size of the authoritative match buffer that limits the number of in-progress join attempts. Default 128."`
DeferredQueueSizeint`yaml:"deferred_queue_size" json:"deferred_queue_size" usage:"Size of the authoritative match buffer that holds deferred message broadcasts until the end of each loop execution. Default 128."`
JoinMarkerDeadlineMsint`yaml:"join_marker_deadline_ms" json:"join_marker_deadline_ms" usage:"Deadline in milliseconds that client authoritative match joins will wait for match handlers to acknowledge joins. Default 15000."`
MaxEmptySecint`yaml:"max_empty_sec" json:"max_empty_sec" usage:"Maximum number of consecutive seconds that authoritative matches are allowed to be empty before they are stopped. Default 900."`
}
// NewMatchConfig creates a new MatchConfig struct.
@@ -110,8 +110,6 @@ func AuthenticateDevice(ctx context.Context, logger *zap.Logger, db *sql.DB, dev
iferr!=nil{
iferr==sql.ErrNoRows{
found=false
// No user account found.
//return "", "", status.Error(codes.NotFound, "Device ID not found.")
}else{
logger.Error("Error looking up user by device ID.",zap.Error(err),zap.String("deviceID",deviceID),zap.String("username",username),zap.Bool("create",create))
return"","",false,status.Error(codes.Internal,"Error finding user account.")