Browse Source

Rename variable

Volodymyr Tkach 2 years ago
parent
commit
e6b74e2926
1 changed files with 3 additions and 3 deletions
  1. 3 3
      testobject.go

+ 3 - 3
testobject.go

@@ -32,13 +32,13 @@ func Run() *TestObject {
 	return w
 }
 
-func (this *TestObject) Shutdown(ctx context.Context) error {
+func (t *TestObject) Shutdown(ctx context.Context) error {
 	fmt.Printf("[TestObject]: OK! I will shutdown!\n")
 
-	this.cancel()
+	t.cancel()
 
 	select {
-	case <-this.chDone:
+	case <-t.chDone:
 		return nil
 	case <-ctx.Done():
 		return ctx.Err()