Skip to content

Commit

Permalink
runtime: virtcontainers/factory: fix govet fieldalignment
Browse files Browse the repository at this point in the history
Fix structures alignment

Signed-off-by: Julio Montes <julio.montes@intel.com>
  • Loading branch information
Julio Montes committed Jul 20, 2021
1 parent dd58de3 commit 54bdd01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/runtime/virtcontainers/factory/cache/cache.go
Expand Up @@ -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
}

Expand Down
8 changes: 5 additions & 3 deletions src/runtime/virtcontainers/factory/factory.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 54bdd01

Please sign in to comment.