Handle calls on closed connection

This commit is contained in:
Jakob Borg
2013-12-28 10:30:02 -05:00
parent 647fdcf6a5
commit 454e672d42
3 changed files with 42 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ type TestModel struct {
func (t *TestModel) Index(nodeID string, files []FileInfo) {
}
func (t *TestModel) IndexUpdate(nodeID string, files []FileInfo) {
}
func (t *TestModel) Request(nodeID, name string, offset uint64, size uint32, hash []byte) ([]byte, error) {
t.name = name
t.offset = offset