Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/new arena service poc #6702

Merged

Conversation

jonny-jeahyunchoi
Copy link
Contributor

아레나 서비스 POC 구현

@github-actions github-actions bot modified the milestones: v280.0.0, v270.0.0 Jan 13, 2025
@jonny-jeahyunchoi jonny-jeahyunchoi linked an issue Jan 13, 2025 that may be closed by this pull request
7 tasks
Copy link

@jonny-jeahyunchoi The versions of bundled Libplanet assemblies and Libplanet submodule vendored by Lib9c apparently do not match:

  • Libplanet submdoule:
  • Libplanet.Action.dll: 5.4.2
  • Libplanet.Common.dll: 5.4.2
  • Libplanet.Crypto.dll: 5.4.2
  • Libplanet.Mocks.dll: 5.4.2
  • Libplanet.RocksDBStore.dll: 5.4.2
  • Libplanet.Store.dll: 5.4.2
  • Libplanet.Types.dll: 5.4.2
  • Libplanet.dll: 5.4.2

Leave a comment in this pull_request with the following command to let the bot upgrade bundled Libplanet assemblies:

/update-libplanet-dlls

@jonny-jeahyunchoi jonny-jeahyunchoi modified the milestones: v270.0.0, v280.0.0 Jan 16, 2025
var description = response.Value["description"]?.ToString() ?? "";
// 설명에서 유효한 파라미터 이름 생성
var descriptionPart = Regex.Replace(description, @"[^a-zA-Z0-9]", "");
if (descriptionPart.Length > 30)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30자 초과에서 특별처리하는 이유가 있을까요?

Copy link
Contributor Author

@jonny-jeahyunchoi jonny-jeahyunchoi Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

특별한이유는 없습니다 이름이 너무길어지면 보기에 불편할까봐 잘랐어요

}
}

public async Task<SeasonResponse> GetSeasonByBlockAsync(Int64 blockIndex)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

반환 형태를 unitask로 안하신 이유가 있을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

특별한이유없습니다~! 변경해도 상관없을것같네요 이후 작업에서 변경해보겠습니다~!

@@ -100,6 +104,12 @@ public ActionManager(IAgent agent)
foreach (var gameAction in gameActions)
{
_actionIdToTxIdBridge[gameAction.Id] = (tx.Id, _agent.BlockIndex);
var existingAction = _cachedPostProcessedActions.FirstOrDefault(a => ReferenceEquals(a.Item1, gameAction));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 용도면 queue쓰는게 더 좋을 것 같습니다. 봐야 알거같긴 한데 스레드 문제도 생길 수 있어보이네요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 서명후 비동기처리하는 작업부분에서 수정되었습니다~! #6718

var existingAction = _cachedPostProcessedActions.FirstOrDefault(a => ReferenceEquals(a.Item1, gameAction));
if (existingAction != null)
{
existingAction.Item2?.Invoke(tx.Id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

액션을 처리하는 시점에 액션 실행이 목표같긴 한데 first or deafult로 처리하는 이유를 잘 모르겠습니다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 임시로 서명id를가지고 서비스요청을 보내야해서 사용한거고 케시된게 하나밖에없을거라는 가정하에 작업된 임시코드입니다 서명후 비동기처리하는 작업부분에서 수정되었습니다~! #6718

@jonny-jeahyunchoi jonny-jeahyunchoi merged commit 901af37 into feature/new-arena-service Jan 23, 2025
2 checks passed
@jonny-jeahyunchoi jonny-jeahyunchoi deleted the feature/new-arena-service-poc branch January 23, 2025 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

아레나 서비스 더미구현 연결 및 테스트
2 participants