Skip to content

Commit

Permalink
Merge pull request #779 from supabase-community/remove-tomap
Browse files Browse the repository at this point in the history
Remove `toMap()` call for public `Realtime#subscriptions` property
  • Loading branch information
jan-tennert authored Nov 8, 2024
2 parents 0fc4125 + 6ffeb06 commit e5bfab0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ import kotlinx.serialization.json.buildJsonObject
private val _status = MutableStateFlow(Realtime.Status.DISCONNECTED)
override val status: StateFlow<Realtime.Status> = _status.asStateFlow()
private val _subscriptions = AtomicMutableMap<String, RealtimeChannel>()
override val subscriptions: Map<String, RealtimeChannel>
get() = _subscriptions.toMap()
override val subscriptions: Map<String, RealtimeChannel> = _subscriptions
private val scope = CoroutineScope(Dispatchers.Default + SupervisorJob())
private val mutex = Mutex()
var heartbeatJob: Job? = null
Expand Down

0 comments on commit e5bfab0

Please sign in to comment.