mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-10 22:29:08 -07:00
Remove unkeyed composite literals.
This was done to keep in accordance with `go vet`.
This commit is contained in:
@@ -84,7 +84,9 @@ func TestTorrentPurging(t *testing.T) {
|
||||
|
||||
func TestStalePeerPurging(t *testing.T) {
|
||||
cfg := config.DefaultConfig
|
||||
cfg.Announce = config.Duration{10 * time.Millisecond}
|
||||
cfg.Announce = config.Duration{
|
||||
Duration: 10 * time.Millisecond,
|
||||
}
|
||||
|
||||
srv, err := setupTracker(&cfg)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user