mirror of https://github.com/docker/compose.git
first watch action for a file event wins
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
0861e68450
commit
254224c182
|
@ -371,7 +371,10 @@ func batchDebounceEvents(ctx context.Context, clock clockwork.Clock, delay time.
|
||||||
flushEvents()
|
flushEvents()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
seen[e.HostPath] = e
|
if _, ok := seen[e.HostPath]; !ok {
|
||||||
|
// already know updated path, first rule in watch configuration wins
|
||||||
|
seen[e.HostPath] = e
|
||||||
|
}
|
||||||
t.Reset(delay)
|
t.Reset(delay)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue