mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #3121 from weaveworks/3113-shortcut
make shortcut reports work (again)
This commit is contained in:
@@ -373,11 +373,9 @@ func (r *registry) updateContainerState(containerID string, intendedState *strin
|
||||
}
|
||||
|
||||
// Trigger anyone watching for updates
|
||||
if err != nil {
|
||||
node := c.GetNode()
|
||||
for _, f := range r.watchers {
|
||||
f(node)
|
||||
}
|
||||
node := c.GetNode()
|
||||
for _, f := range r.watchers {
|
||||
f(node)
|
||||
}
|
||||
|
||||
// And finally, ensure we gather stats for it
|
||||
|
||||
@@ -259,6 +259,7 @@ func (r Report) Copy() Report {
|
||||
DNS: r.DNS.Copy(),
|
||||
Sampling: r.Sampling,
|
||||
Window: r.Window,
|
||||
Shortcut: r.Shortcut,
|
||||
Plugins: r.Plugins.Copy(),
|
||||
ID: fmt.Sprintf("%d", rand.Int63()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user