diff options
| author | Paul Buetow <35781042+pbuetow@users.noreply.github.com> | 2020-12-29 09:48:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-29 09:48:56 +0000 |
| commit | 0fe3c8708634cc59d61bf47bd909ef0111f0d56a (patch) | |
| tree | c9f0dfa884927079de309b68c48224f4b0f00d0d /internal/clients | |
| parent | 495e9f38220a6d448b15882a235e7a9c21f21d18 (diff) | |
| parent | 0099a7ab9e1d28300c69c3b50b4ebe1cde9a8cbc (diff) | |
Merge pull request #20 from snonux/develop
Make CGo dependencies optional (e.g. Linux ACL support)
Diffstat (limited to 'internal/clients')
| -rw-r--r-- | internal/clients/handlers/withcancel.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/internal/clients/handlers/withcancel.go b/internal/clients/handlers/withcancel.go deleted file mode 100644 index 7c9cf4e..0000000 --- a/internal/clients/handlers/withcancel.go +++ /dev/null @@ -1,24 +0,0 @@ -package handlers - -import "context" - -type withCancel struct { - ctx context.Context - done chan struct{} -} - -// WithCancel sets and returns the context used. -func (w *withCancel) WithCancel(ctx context.Context) (context.Context, context.CancelFunc) { - cancelCtx, cancel := context.WithCancel(ctx) - w.ctx = cancelCtx - - return cancelCtx, cancel -} - -func (w *withCancel) Done() <-chan struct{} { - return w.done -} - -func (w *withCancel) shutdown() { - close(w.done) -} |
