Skip to content

Commit

Permalink
feat: fix method NewQuaiBackend
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxiesCN committed Dec 19, 2024
1 parent c8b5a42 commit a4a5288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quai/p2p_backend.go
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ func NewQuaiBackend() (*QuaiBackend, error) {
for i := 0; i < common.MaxRegions; i++ {
zoneBackends[i] = make([]*quaiapi.Backend, common.MaxZones)
}
return &QuaiBackend{regionApiBackends: make([]*quaiapi.Backend, common.MaxZones), zoneApiBackends: zoneBackends}, nil
return &QuaiBackend{regionApiBackends: make([]*quaiapi.Backend, common.MaxRegions), zoneApiBackends: zoneBackends}, nil
}

// Adds the p2pBackend into the given QuaiBackend

0 comments on commit a4a5288

Please sign in to comment.