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