Convert wire protocol ranges into database ranges.
(in []MsgRange)
| 54 | |
| 55 | // Convert wire protocol ranges into database ranges. |
| 56 | func rangeSerialize(in []MsgRange) []types.Range { |
| 57 | if len(in) == 0 { |
| 58 | return nil |
| 59 | } |
| 60 | |
| 61 | out := make([]types.Range, 0, len(in)) |
| 62 | for _, r := range in { |
| 63 | out = append(out, types.Range{Low: r.LowId, Hi: r.HiId}) |
| 64 | } |
| 65 | |
| 66 | return out |
| 67 | } |
| 68 | |
| 69 | // stringSliceDelta extracts the slices of added and removed strings from two slices: |
| 70 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…