Skip to content

Commit

Permalink
Looks like 'synchronized' here is doing more harm than good (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Nov 8, 2023
1 parent a8b9edb commit 370a441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private Flux<Map.Entry<Zone, SortedMap<SchedulePeriod, ZoneSettings>>> updateSch
*
* VT: FIXME: The above looks weird, need refactoring.
*/
private synchronized Flux<Map.Entry<String, Map.Entry<SchedulePeriod, ZoneSettings>>> applySchedule(Map.Entry<Zone, SortedMap<SchedulePeriod, ZoneSettings>> source) {
private Flux<Map.Entry<String, Map.Entry<SchedulePeriod, ZoneSettings>>> applySchedule(Map.Entry<Zone, SortedMap<SchedulePeriod, ZoneSettings>> source) {

ThreadContext.push("applySchedule");

Expand Down

0 comments on commit 370a441

Please sign in to comment.