Skip to content

Commit c1711de

Browse files
committed
logs
1 parent c4c659d commit c1711de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/tasks/Request7Channels.kt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
package tasks
22

3-
import contributors.*
3+
import contributors.GitHubService
4+
import contributors.RequestData
5+
import contributors.User
6+
import contributors.logRepos
47
import kotlinx.coroutines.channels.Channel
58
import kotlinx.coroutines.coroutineScope
9+
import samples.log
610

711
suspend fun loadContributorsChannels(
812
service: GitHubService,
@@ -19,10 +23,13 @@ suspend fun loadContributorsChannels(
1923
val channel = Channel<List<User>>()
2024

2125
for ((index, repo) in repos.withIndex()) {
26+
log("for start")
2227
val users = service.getRepoContributors(req.org, repo.name)
2328
.also { log("repo: ${repo.name}") }
2429
.bodyList()
30+
log("users: ${users}")
2531
channel.send(users)
32+
log("after channel.send(users)")
2633
}
2734
repeat(repos.size) {
2835
val users = channel.receive()

0 commit comments

Comments
 (0)