mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-08 04:57:50 +01:00
refactoring only
This commit is contained in:
1 parent
10c2a4540e
commit
5caa7bbdc9
3 files changed
+11
-14
No files matched your search
@@ -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}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user