@ -77,7 +77,11 @@ func (s DataSwampService) SaveFile(ref swampfile.FileReference, src io.Reader, s
return swampfile.ErrContentSizeExceeded
}
f.Close()
err = f.Close()
if err != nil {
panic(err)
s.eventBus.Handle(*util.NewEvent("FileRecieved", struct {
Name string
Size int64
@ -1,6 +1,8 @@
package system_time
import "time"
import (
"time"
)
type Clock struct{}