feat: gate allocator roster publication

This commit is contained in:
Josh Creek
2026-09-01 09:55:09 +01:00
parent 8b5b5333c6
commit febc69bdef
5 changed files with 49 additions and 4 deletions
+6
View File
@@ -32,6 +32,12 @@ type DurableAssignment struct {
Revision uint64
}
type PostgresRosterStore struct{ DB *sql.DB }
func (s PostgresRosterStore) PublishRoster(ctx context.Context, assignment domain.Assignment, roster []domain.SignedJoinAuthorisation, verify func([]byte, []byte) bool) error {
return SaveVerifiedAssignmentRoster(ctx, s.DB, assignment, roster, verify)
}
const AssignmentUpsertSQL = `INSERT INTO assignments
(match_id, player_id, allocation_id, server_id, slot, region, client_build,
protocol_version, transport, endpoint, join_authorisation, manifest_digest,