recator, test: race relation

This commit is contained in:
Ilia Denisov
2026-02-08 10:11:58 +02:00
parent fc73cbf83a
commit c36857e702
6 changed files with 49 additions and 69 deletions
-13
View File
@@ -29,19 +29,6 @@ func (c Controller) GiveVotes(actor, acceptor string) error {
return nil
}
// FIXME: remove, not a command
func (c Controller) Relation(actor, acceptor string) (game.Relation, error) {
r1, err := c.Cache.validActor(actor)
if err != nil {
return game.Relation(""), err
}
r2, err := c.Cache.validRace(acceptor)
if err != nil {
return game.Relation(""), err
}
return c.Cache.Relation(r1, r2), nil
}
func (c Controller) UpdateRelation(actor, acceptor string, rel game.Relation) error {
ri, err := c.Cache.validActor(actor)
if err != nil {