File tree Expand file tree Collapse file tree
feature-retrofit/src/main/java/com/advice/retrofit/datasource Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ class RetrofitMapsDataSource(
5555 private val sharingScope : CoroutineScope = CoroutineScope (SupervisorJob () + Dispatchers .IO ),
5656) : MapsDataSource,
5757 Closeable {
58-
5958 private val mapsFlow: Flow <FlowResult <Maps >> =
6059 userSession
6160 .getConferenceFlow()
@@ -76,9 +75,7 @@ class RetrofitMapsDataSource(
7675 replay = 1 ,
7776 )
7877
79- private suspend fun FlowCollector<FlowResult<Maps>>.emitAllMapsForConference (
80- conference : Conference ,
81- ) {
78+ private suspend fun FlowCollector<FlowResult<Maps>>.emitAllMapsForConference (conference : Conference ) {
8279 val mark = TimeSource .Monotonic .markNow()
8380 Timber .d(
8481 " Maps: conference=%s (%s) mapCount=%d" ,
@@ -112,8 +109,7 @@ class RetrofitMapsDataSource(
112109 }
113110 }
114111
115- fun snapshot (): List <MapFile > =
116- entries.mapNotNull { entry -> completed[entry.key] }
112+ fun snapshot (): List <MapFile > = entries.mapNotNull { entry -> completed[entry.key] }
117113
118114 if (toDownload.isEmpty()) {
119115 Timber .d(
You can’t perform that action at this time.
0 commit comments