runtime: virtcontainers/factory: fix govet fieldalignment

Fix structures alignment

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2021-07-19 16:15:01 -05:00
parent dd58de368d
commit 54bdd01811
2 changed files with 10 additions and 6 deletions

View File

@ -19,12 +19,14 @@ import (
type cache struct {
base base.FactoryBase
cacheCh chan *vc.VM
closed chan<- int
cacheCh chan *vc.VM
closed chan<- int
vmm map[*vc.VM]interface{}
wg sync.WaitGroup
closeOnce sync.Once
vmm map[*vc.VM]interface{}
vmmLock sync.RWMutex
}

View File

@ -32,13 +32,15 @@ var factoryLogger = logrus.FieldLogger(logrus.New())
// Config is a collection of VM factory configurations.
type Config struct {
Template bool
VMCache bool
Cache uint
TemplatePath string
VMCacheEndpoint string
VMConfig vc.VMConfig
Cache uint
Template bool
VMCache bool
}
type factory struct {