Skip to content

Commit

Permalink
Update system.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml authored May 21, 2020
1 parent 8e200df commit 011bcc0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions system.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ func (s *System) Stop() {
}

func (s *System) handshake() {

var stash []string
pingMessage := s.Name + " ]"

Expand Down Expand Up @@ -405,16 +404,15 @@ func (s *System) Start() {
if len(parts) < 4 {
continue
}
recieverRegion, senderRegion, receiverName, senderName := parts[0], parts[1], parts[2], parts[3]
s.onMessage(
parts[4],
Coordinates{
Name: receiverName,
Region: recieverRegion,
Name: parts[2],
Region: parts[0],
},
Coordinates{
Name: senderName,
Region: senderRegion,
Name: parts[3],
Region: parts[1],
},
)
case <-s.Done():
Expand Down

0 comments on commit 011bcc0

Please sign in to comment.