Comment and formatting

This commit is contained in:
Matt Joiner 2017-09-17 00:45:12 +10:00
parent 69ffb9bc8d
commit ed0fa62340
2 changed files with 4 additions and 3 deletions

View File

@ -264,6 +264,7 @@ func NewClient(cfg *Config) (cl *Client, err error) {
cl.event.L = &cl.mu
storageImpl := cfg.DefaultStorage
if storageImpl == nil {
// We'd use mmap but HFS+ doesn't support sparse files.
storageImpl = storage.NewFile(cfg.DataDir)
cl.onClose = append(cl.onClose, func() {
if err := storageImpl.Close(); err != nil {