2411: Add copyright notices to everything.
[arvados.git] / services / keepstore / mock_mutex_for_test.go
index e75d91058785e018a064f3255d2f27b4d005ca41..484b177230b3cdb2c581e654993bfd8dfd1027b2 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 package main
 
 type MockMutex struct {
@@ -7,17 +11,17 @@ type MockMutex struct {
 
 func NewMockMutex() *MockMutex {
        return &MockMutex{
-               AllowLock: make(chan struct{}),
+               AllowLock:   make(chan struct{}),
                AllowUnlock: make(chan struct{}),
        }
 }
 
 // Lock waits for someone to send to AllowLock.
 func (m *MockMutex) Lock() {
-       <- m.AllowLock
+       <-m.AllowLock
 }
 
 // Unlock waits for someone to send to AllowUnlock.
 func (m *MockMutex) Unlock() {
-       <- m.AllowUnlock
+       <-m.AllowUnlock
 }