@@ -5,7 +5,6 @@ import org.gitanimals.core.UpdateUserOrchestrator
55import org.gitanimals.core.auth.UserEntryPoint
66import org.gitanimals.core.filter.MDCFilter.Companion.TRACE_ID
77import org.gitanimals.core.lock.DistributedLock
8- import org.gitanimals.core.lock.LOCK_KEY_PREFIX
98import org.gitanimals.core.lock.LOCK_KEY_PREFIX.CREATE_NEW_USER
109import org.gitanimals.render.domain.EntryPoint
1110import org.gitanimals.render.domain.User
@@ -34,9 +33,7 @@ class AnimationFacade(
3433 fun getFarmAnimation (username : String ): String {
3534 return when (userService.existsByName(username)) {
3635 true -> {
37- DistributedLock .withLock(key = " ${LOCK_KEY_PREFIX .SET_AUTH } :$username " ) {
38- setUserAuthInfoIfNotSet(username)
39- }
36+ setUserAuthInfoIfNotSet(username)
4037
4138 val svgAnimation = userService.getFarmAnimationByUsername(username)
4239 eventPublisher.publishEvent(Visited (username, MDC .get(TRACE_ID )))
@@ -53,9 +50,7 @@ class AnimationFacade(
5350 fun getLineAnimation (username : String , personaId : Long , mode : Mode ): String {
5451 return when (userService.existsByName(username)) {
5552 true -> {
56- DistributedLock .withLock(key = " ${LOCK_KEY_PREFIX .SET_AUTH } :$username " ) {
57- setUserAuthInfoIfNotSet(username)
58- }
53+ setUserAuthInfoIfNotSet(username)
5954
6055 val svgAnimation = userService.getLineAnimationByUsername(username, personaId, mode)
6156 eventPublisher.publishEvent(Visited (username, MDC .get(TRACE_ID )))
0 commit comments