mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Run goimports on htpasswd.go
This commit is contained in:
parent
3e4edd3dd8
commit
67a0f63773
1 changed files with 7 additions and 7 deletions
14
htpasswd.go
14
htpasswd.go
|
@ -38,11 +38,11 @@ import (
|
|||
|
||||
// HtpasswdFile is a map for usernames to passwords.
|
||||
type HtpasswdFile struct {
|
||||
mutex sync.Mutex
|
||||
path string
|
||||
stat os.FileInfo
|
||||
mutex sync.Mutex
|
||||
path string
|
||||
stat os.FileInfo
|
||||
throttle chan struct{}
|
||||
Users map[string]string
|
||||
Users map[string]string
|
||||
}
|
||||
|
||||
// NewHtpasswdFromFile reads the users and passwords from a htpasswd file and returns them. If an error is encountered,
|
||||
|
@ -54,9 +54,9 @@ func NewHtpasswdFromFile(path string) (*HtpasswdFile, error) {
|
|||
}
|
||||
|
||||
h := &HtpasswdFile{
|
||||
mutex: sync.Mutex{},
|
||||
path: path,
|
||||
stat: stat,
|
||||
mutex: sync.Mutex{},
|
||||
path: path,
|
||||
stat: stat,
|
||||
throttle: make(chan struct{}),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue