refactoring only

This commit is contained in:
Chris Lu
2012-08-23 19:10:55 -07:00
parent 10c2a4540e
commit 5caa7bbdc9
3 changed files with 11 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ import (
"math/rand"
"os"
"path"
"pkg/storage"
"pkg/topology"
"strconv"
"sync"
)
@@ -22,7 +22,7 @@ type MachineInfo struct {
}
type Machine struct {
Server MachineInfo
Volumes []storage.VolumeInfo
Volumes []topology.VolumeInfo
}
type Mapper struct {
@@ -41,7 +41,7 @@ type Mapper struct {
volumeSizeLimit uint64
}
func NewMachine(server, publicUrl string, volumes []storage.VolumeInfo) *Machine {
func NewMachine(server, publicUrl string, volumes []topology.VolumeInfo) *Machine {
return &Machine{Server: MachineInfo{Url: server, PublicUrl: publicUrl}, Volumes: volumes}
}