(ctx DiffResolverCtx)
| 63 | ) |
| 64 | |
| 65 | func NewDiffResolver(ctx DiffResolverCtx) *DiffResolver { |
| 66 | if ctx == nil { |
| 67 | ctx = &defaultDiffResolverCtx{} |
| 68 | } |
| 69 | return &DiffResolver{ |
| 70 | ctx: ctx, |
| 71 | srcCh: make(chan *cluster.LOM, 1000), |
| 72 | dstCh: make(chan *DstElement, 1000), |
| 73 | resultCh: make(chan DiffResolverResult, 1000), |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func (dr *DiffResolver) Start() { |
| 78 | go func() { |
no outgoing calls