From 450a1128785a18b49994819586df248dce809966 Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Wed, 6 May 2020 00:20:25 -0700 Subject: [PATCH] Utils: Removed go-deadlock dependency meant to be used for debugging --- go.mod | 2 -- go.sum | 4 ---- utils/moreatomic/mutex.go | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index bd399aa..2736f21 100644 --- a/go.mod +++ b/go.mod @@ -5,10 +5,8 @@ go 1.13 require ( github.com/gorilla/schema v1.1.0 github.com/gorilla/websocket v1.4.2 - github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect github.com/pkg/errors v0.9.1 github.com/sasha-s/go-csync v0.0.0-20160729053059-3bc6c8bdb3fa - github.com/sasha-s/go-deadlock v0.2.0 golang.org/x/crypto v0.0.0-20200423211502-4bdfaf469ed5 golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 ) diff --git a/go.sum b/go.sum index a5e2517..6c07706 100644 --- a/go.sum +++ b/go.sum @@ -2,14 +2,10 @@ github.com/gorilla/schema v1.1.0 h1:CamqUDOFUBqzrvxuz2vEwo8+SUdwsluFh7IlzJh30LY= github.com/gorilla/schema v1.1.0/go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU= github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ= -github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/sasha-s/go-csync v0.0.0-20160729053059-3bc6c8bdb3fa h1:xiD6U6h+QMkAwI195dFwdku2N+enlCy9XwFTnEXaCQo= github.com/sasha-s/go-csync v0.0.0-20160729053059-3bc6c8bdb3fa/go.mod h1:KKzWrLiWu6EpzxZBPmPisPgq6oL+do2yLa0C0BTx5fA= -github.com/sasha-s/go-deadlock v0.2.0 h1:lMqc+fUb7RrFS3gQLtoQsJ7/6TV/pAIFvBsqX73DK8Y= -github.com/sasha-s/go-deadlock v0.2.0/go.mod h1:StQn567HiB1fF2yJ44N9au7wOhrPS3iZqiDbRupzT10= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200423211502-4bdfaf469ed5 h1:Q7tZBpemrlsc2I7IyODzhtallWRSm4Q0d09pL6XbQtU= diff --git a/utils/moreatomic/mutex.go b/utils/moreatomic/mutex.go index 4893997..36b971b 100644 --- a/utils/moreatomic/mutex.go +++ b/utils/moreatomic/mutex.go @@ -1,10 +1,10 @@ package moreatomic -import "github.com/sasha-s/go-deadlock" +import "sync" type BusyMutex struct { busy Bool - mut deadlock.Mutex + mut sync.Mutex } func (m *BusyMutex) TryLock() bool {