Skip to content

Commit

Permalink
Use actual server name as name
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Dec 17, 2024
1 parent dfdf6d9 commit a75a373
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions librarian_background/corruption_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from librarian_server.orm.instance import Instance
from librarian_server.orm.librarian import Librarian
from librarian_server.orm.transfer import IncomingTransfer
from librarian_server.settings import server_settings

from .task import Task

Expand Down Expand Up @@ -153,7 +154,7 @@ def core(self, session: Session) -> bool:
continue

prepare_request = CorruptionPreparationRequest(
file_name=corrupt.file_name, librarian_name=result.name
file_name=corrupt.file_name, librarian_name=server_settings.name
)

try:
Expand Down Expand Up @@ -182,7 +183,7 @@ def core(self, session: Session) -> bool:

resend_request = CorruptionResendRequest(
file_name=corrupt.file_name,
librarian_name=result.name,
librarian_name=server_settings.name,
)

try:
Expand Down

0 comments on commit a75a373

Please sign in to comment.