~edwargix/tallyard

99367a6ac1733854c58aca5e8f9ef9eb688d06e0 — David Florness 5 years ago 71a6659
Master closes stream after sending candidates
1 files changed, 4 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +4 -0
@@ 40,6 40,7 @@ func masterStreamHandler(stream network.Stream) {
	}

	writer.Flush()
	stream.Close()
}

func createElection() {


@@ 166,6 167,9 @@ func bootstrap() {
				} else if err != nil {
					panic(err)
				}
				if str[len(str)-1] == '\n' {
					str = str[:len(str)-1]
				}
				fmt.Println(str)
			}
			stream.Close()