determine set of current channels based on removal entries.
()
| 153 | |
| 154 | // determine set of current channels based on removal entries. |
| 155 | func (sd *SyncData) getCurrentChannels() base.Set { |
| 156 | ch := base.SetOf() |
| 157 | for channelName, channelRemoval := range sd.Channels { |
| 158 | if channelRemoval == nil || channelRemoval.Seq == 0 { |
| 159 | ch.Add(channelName) |
| 160 | } |
| 161 | } |
| 162 | return ch |
| 163 | } |
| 164 | |
| 165 | func (sd *SyncData) SetCV(hlv *HybridLogicalVector) { |
| 166 | sd.RevAndVersion.CurrentSource = hlv.SourceID |
no test coverage detected