mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 03:08:51 +08:00
go fmt
This commit is contained in:
@@ -213,7 +213,7 @@ func satisfyReplicaPlacement(replicaPlacement *super_block.ReplicaPlacement, exi
|
||||
// now this is one of the primary dcs
|
||||
existingRacks := make(map[string]int)
|
||||
for _, loc := range existingLocations {
|
||||
if loc.DataCenter()!=possibleLocation.DataCenter() {
|
||||
if loc.DataCenter() != possibleLocation.DataCenter() {
|
||||
continue
|
||||
}
|
||||
existingRacks[loc.Rack()] += 1
|
||||
|
@@ -14,6 +14,7 @@ type testcase struct {
|
||||
possibleLocation location
|
||||
expected bool
|
||||
}
|
||||
|
||||
func TestSatisfyReplicaPlacementComplicated(t *testing.T) {
|
||||
|
||||
var tests = []testcase{
|
||||
|
Reference in New Issue
Block a user