enable cache for build, closes #8 (#12)

* enable cache for build, closes #8
* goimports
* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-20 15:23:41 +03:00
committed by GitHub
parent 98ba3b2788
commit 199ff66bd4
37 changed files with 62 additions and 47 deletions

View File

@@ -45,7 +45,9 @@ func (q *quicSocket) Recv(m *transport.Message) error {
func (q *quicSocket) Send(m *transport.Message) error {
// set the write deadline
q.st.SetWriteDeadline(time.Now().Add(time.Second * 10))
if err := q.st.SetWriteDeadline(time.Now().Add(time.Second * 10)); err != nil {
return err
}
// send the data
return q.enc.Encode(m)
}