revert sync

This commit is contained in:
YouROK
2020-12-30 10:18:48 +03:00
parent ac4efa8a86
commit 697a20cc71
6 changed files with 6 additions and 6 deletions

View File

@@ -2,8 +2,8 @@ package settings
import ( import (
"encoding/json" "encoding/json"
sync "github.com/sasha-s/go-deadlock"
"sort" "sort"
"sync"
"github.com/anacrolix/torrent" "github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/metainfo" "github.com/anacrolix/torrent/metainfo"

View File

@@ -2,7 +2,7 @@ package torrstor
import ( import (
"fmt" "fmt"
sync "github.com/sasha-s/go-deadlock" "sync"
) )
type buffer struct { type buffer struct {

View File

@@ -1,8 +1,8 @@
package torrstor package torrstor
import ( import (
sync "github.com/sasha-s/go-deadlock"
"sort" "sort"
"sync"
"github.com/anacrolix/torrent" "github.com/anacrolix/torrent"
"server/log" "server/log"

View File

@@ -2,8 +2,8 @@ package torrstor
import ( import (
"errors" "errors"
sync "github.com/sasha-s/go-deadlock"
"io" "io"
"sync"
"time" "time"
"github.com/anacrolix/torrent/storage" "github.com/anacrolix/torrent/storage"

View File

@@ -1,7 +1,7 @@
package torrstor package torrstor
import ( import (
sync "github.com/sasha-s/go-deadlock" "sync"
"server/torr/storage" "server/torr/storage"

View File

@@ -1,7 +1,7 @@
package utils package utils
import ( import (
sync "github.com/sasha-s/go-deadlock" "sync"
) )
func ParallelFor(begin, end int, fn func(i int)) { func ParallelFor(begin, end int, fn func(i int)) {