From 697a20cc71ae7915e806789e0d34cab2b16b4967 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Wed, 30 Dec 2020 10:18:48 +0300 Subject: [PATCH] revert sync --- src/server/settings/torrent.go | 2 +- src/server/torr/storage/torrstor/buffer.go | 2 +- src/server/torr/storage/torrstor/cache.go | 2 +- src/server/torr/storage/torrstor/piece.go | 2 +- src/server/torr/storage/torrstor/storage.go | 2 +- src/server/utils/prallel.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server/settings/torrent.go b/src/server/settings/torrent.go index a7fbcdf..809bef1 100644 --- a/src/server/settings/torrent.go +++ b/src/server/settings/torrent.go @@ -2,8 +2,8 @@ package settings import ( "encoding/json" - sync "github.com/sasha-s/go-deadlock" "sort" + "sync" "github.com/anacrolix/torrent" "github.com/anacrolix/torrent/metainfo" diff --git a/src/server/torr/storage/torrstor/buffer.go b/src/server/torr/storage/torrstor/buffer.go index 2bb58ff..8373c9f 100644 --- a/src/server/torr/storage/torrstor/buffer.go +++ b/src/server/torr/storage/torrstor/buffer.go @@ -2,7 +2,7 @@ package torrstor import ( "fmt" - sync "github.com/sasha-s/go-deadlock" + "sync" ) type buffer struct { diff --git a/src/server/torr/storage/torrstor/cache.go b/src/server/torr/storage/torrstor/cache.go index d451b39..6b23a49 100644 --- a/src/server/torr/storage/torrstor/cache.go +++ b/src/server/torr/storage/torrstor/cache.go @@ -1,8 +1,8 @@ package torrstor import ( - sync "github.com/sasha-s/go-deadlock" "sort" + "sync" "github.com/anacrolix/torrent" "server/log" diff --git a/src/server/torr/storage/torrstor/piece.go b/src/server/torr/storage/torrstor/piece.go index 2bb6ac5..ec7b361 100644 --- a/src/server/torr/storage/torrstor/piece.go +++ b/src/server/torr/storage/torrstor/piece.go @@ -2,8 +2,8 @@ package torrstor import ( "errors" - sync "github.com/sasha-s/go-deadlock" "io" + "sync" "time" "github.com/anacrolix/torrent/storage" diff --git a/src/server/torr/storage/torrstor/storage.go b/src/server/torr/storage/torrstor/storage.go index 1a1b379..a744715 100644 --- a/src/server/torr/storage/torrstor/storage.go +++ b/src/server/torr/storage/torrstor/storage.go @@ -1,7 +1,7 @@ package torrstor import ( - sync "github.com/sasha-s/go-deadlock" + "sync" "server/torr/storage" diff --git a/src/server/utils/prallel.go b/src/server/utils/prallel.go index 3a54752..bba4311 100644 --- a/src/server/utils/prallel.go +++ b/src/server/utils/prallel.go @@ -1,7 +1,7 @@ package utils import ( - sync "github.com/sasha-s/go-deadlock" + "sync" ) func ParallelFor(begin, end int, fn func(i int)) {