Skip to content

Commit

Permalink
Merge pull request ppy#10795 from notbakaneko/feature/score-indexer-u…
Browse files Browse the repository at this point in the history
…pdates-pr-152

Update score index, queue and tests
  • Loading branch information
nanaya authored Dec 25, 2023
2 parents cc1e00a + a583b43 commit 5c3569f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/Libraries/Search/ScoreSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ScoreSearch extends RecordSearch
public function __construct(?ScoreSearchParams $params = null)
{
parent::__construct(
$GLOBALS['cfg']['osu']['elasticsearch']['prefix'].'solo_scores',
$GLOBALS['cfg']['osu']['elasticsearch']['prefix'].'scores',
$params ?? new ScoreSearchParams(),
Score::class
);
Expand Down Expand Up @@ -122,7 +122,7 @@ public function queueForIndex(?array $schemas, array $ids): void
);

foreach ($schemas as $schema) {
LaravelRedis::lpush("osu-queue:score-index-{$schema}", ...$values);
LaravelRedis::lpush("osu-queue:{$schema}", ...$values);
}
}

Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ services:
- "${NGINX_PORT:-8080}:80"

score-indexer:
image: pppy/osu-elastic-indexer
command: ["queue", "watch", "--set-current"]
image: pppy/osu-elastic-indexer:master
command: ["queue", "watch"]
depends_on:
redis:
condition: service_healthy
Expand All @@ -159,8 +159,8 @@ services:
SCHEMA: "${SCHEMA:-1}"

score-indexer-test:
image: pppy/osu-elastic-indexer
command: ["queue", "watch", "--set-current"]
image: pppy/osu-elastic-indexer:master
command: ["queue", "watch"]
depends_on:
redis:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/EsIndexScoresQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private static function clearQueue(): void

private static function queueKey(): string
{
return 'osu-queue:score-index-'.static::SCHEMA;
return 'osu-queue:'.static::SCHEMA;
}

private static function queueSize(): int
Expand Down

0 comments on commit 5c3569f

Please sign in to comment.