Add worker skeleton for cross model relations #6593

Merged
merged 1 commit into from Nov 22, 2016

Conversation

Projects
None yet
3 participants
Owner

wallyworld commented Nov 22, 2016

Skeleton and associated boilerplate for new remote relations worker.

QA: bootstrap lxd

axw approved these changes Nov 22, 2016

LGTM with a few little things

cmd/jujud/agent/model/manifolds_test.go
}
var _ = gc.Suite(&ManifoldsSuite{})
+func (s *ManifoldsSuite) SetUpTest(c *gc.C) {
+ s.SetInitialFeatureFlags(feature.CrossModelRelations)
@axw

axw Nov 22, 2016

Member

can you please do this in a separate test? i.e. check the standard set of manifolds, and then have another test which checks what the effect of setting the feature flag is

+func (w *Worker) loop() error {
+ for {
+ // TODO(wallyworld)
+ if w.killed() {
@axw

axw Nov 22, 2016

Member

This is going to spin in a tight loop. I think you should just bring the select up into this loop, and ditch the default case.

+package remoterelations
+
+import (
+ "github.com/juju/errors"
Owner

wallyworld commented Nov 22, 2016

$$merge$$

Contributor

jujubot commented Nov 22, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit bd8c3e2 into juju:develop Nov 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment