split to parts for sockets
This commit is contained in:
parent
17253d5555
commit
f42ec9e116
2
main.go
2
main.go
|
@ -54,7 +54,7 @@ func main() {
|
||||||
pixelmatrix = getPart(pixelmatrix, partCount, partTotal, partBegin)
|
pixelmatrix = getPart(pixelmatrix, partCount, partTotal, partBegin)
|
||||||
|
|
||||||
for s := 0; s < socketCount; s++ {
|
for s := 0; s < socketCount; s++ {
|
||||||
conn := createSocket(pixelmatrix)
|
conn := createSocket(getPart(pixelmatrix, 1, socketCount, s))
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue