File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
presentation/src/main/java/com/stop Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import androidx.work.workDataOf
10
10
import com.stop.domain.usecase.nearplace.GetNearPlacesUseCase
11
11
import dagger.assisted.Assisted
12
12
import dagger.assisted.AssistedInject
13
- import kotlinx.coroutines.Dispatchers
14
- import kotlinx.coroutines.withContext
15
13
16
14
// 일단은 NearPlaceUseCase 이용하여서 데이터 가져오기 구현
17
15
@@ -34,17 +32,14 @@ class AlarmWorker @AssistedInject constructor(
34
32
}
35
33
36
34
private suspend fun callApi () {
37
- withContext(Dispatchers .IO ) {
38
- val list = getNearPlacesUseCase.getNearPlaces(
39
- 1 ,
40
- " 아남타워" ,
41
- 126.969652 ,
42
- 37.553836 ,
43
- BuildConfig .TMAP_APP_KEY
44
- )
45
- Log .e(" ABC" , list.toString())
46
- }
47
-
35
+ val list = getNearPlacesUseCase.getNearPlaces(
36
+ 1 ,
37
+ " 아남타워" ,
38
+ 126.969652 ,
39
+ 37.553836 ,
40
+ BuildConfig .TMAP_APP_KEY
41
+ )
42
+ Log .e(" ABC" , list.toString())
48
43
}
49
44
50
45
}
You can’t perform that action at this time.
0 commit comments