Skip to content

Commit

Permalink
Merge pull request #60 from lotteon2/develop
Browse files Browse the repository at this point in the history
[ADD] log
  • Loading branch information
ssjy4974 authored Jan 26, 2024
2 parents a66a95c + 1e982a6 commit 28f767d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies {
implementation 'software.amazon.awssdk:dynamodb:2.1.0'

implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation group: 'io.github.dailyon-maven', name: 'daily-on-common', version: '0.1.0'
implementation group: 'io.github.dailyon-maven', name: 'daily-on-common', version: '0.1.2'

implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public void scheduleJob(LocalDateTime startTime, String auctionId)
}

public void startJob(String auctionId) {
log.info("startJob : {}", auctionId);
countdown = 3 * 60 * 1000;
if (this.jobDisposable == null || this.jobDisposable.isDisposed()) {
this.jobDisposable =
Expand Down Expand Up @@ -124,6 +125,7 @@ private Mono<Void> sendCloseCommand(String auctionId) {

private Mono<Void> sendTimeSyncCommand() {
ChatPayload<Object> payload = ChatPayload.of(ChatCommand.TIME_SYNC, countdown);
log.info("sync payload {}", payload);
return chatHandler.broadCast(payload).then();
}
}

0 comments on commit 28f767d

Please sign in to comment.