Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 3e91e77

Browse files
authored
Revert "Simplified interaction between scheduler and control"
1 parent 367020b commit 3e91e77

44 files changed

Lines changed: 1691 additions & 3021 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ Documentation for Snap will be kept in this repository for now with an emphasis
230230
* [build and test](docs/BUILD_AND_TEST.md)
231231
* [REST API](docs/REST_API.md)
232232
* [tasks](docs/TASKS.md)
233-
* [plugin life cycle](docs/PLUGIN_LIFECYCLE.md)
234233
* [plugin signing](docs/PLUGIN_SIGNING.md)
235234
* [tribe](docs/TRIBE.md)
236235

control/available_plugin.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const (
5454
var (
5555
ErrPoolNotFound = errors.New("plugin pool not found")
5656
ErrBadKey = errors.New("bad key")
57-
ErrBadTaskId = errors.New("bad task id")
5857
)
5958

6059
// availablePlugin represents a plugin which is
@@ -539,8 +538,6 @@ func (ap *availablePlugins) findLatestPool(pType, name string) (strategy.Pool, s
539538
}
540539

541540
func (ap *availablePlugins) getOrCreatePool(key string) (strategy.Pool, error) {
542-
ap.Lock()
543-
defer ap.Unlock()
544541
var err error
545542
pool, ok := ap.table[key]
546543
if ok {

control/available_plugin_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ func TestAvailablePlugin(t *testing.T) {
5353
Convey("Stop()", t, func() {
5454
Convey("returns nil if plugin successfully stopped", func() {
5555
r := newRunner()
56-
r.SetEmitter(new(MockEmitter))
5756
a := plugin.Arg{
5857
PluginLogPath: "/tmp/snap-test-plugin-stop.log",
5958
}

0 commit comments

Comments
 (0)