github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/raft/shim.go (about) 1 // Copyright 2018 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package raft 5 6 import "gopkg.in/juju/worker.v1" 7 8 // NewWorkerShim is suitable for use in ManifoldConfig.NewWorker, 9 // and simply calls through to NewWorker. 10 func NewWorkerShim(config Config) (worker.Worker, error) { 11 return NewWorker(config) 12 }