Propagate and log reason for connection close

This commit is contained in:
Jakob Borg
2013-12-30 21:21:57 -05:00
parent 7e3b29e3e0
commit 0f6b34160c
5 changed files with 43 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ func (t *TestModel) Request(nodeID, name string, offset uint64, size uint32, has
return t.data, nil
}
func (t *TestModel) Close(nodeID string) {
func (t *TestModel) Close(nodeID string, err error) {
t.closed = true
}