Browse files

fs: Move service.fs field under field.

We want to be confident that there are no data races when acessing
the filesystem. This was already the case because fs access is
protected by mu. Reorder service fields to make that more clear.
  • Loading branch information...
dmitshur committed Oct 6, 2018
1 parent 37636e3 commit 8243f2deb88db34698a940c98c1dd9f4c5daacc0
Showing with 4 additions and 4 deletions.
  1. +4 −4 fs/fs.go
@@ -30,13 +30,13 @@ func NewService(root webdav.FileSystem, user users.User, users users.Service) (e
type service struct {
fs webdav.FileSystem
user users.User
users users.Service
mu sync.Mutex
fs webdav.FileSystem
ring ring
events [ringSize]event.Event // Latest events are added to the end.
user users.User
users users.Service
func (s *service) load() error {

0 comments on commit 8243f2d

Please sign in to comment.