checkpoint

mine
derailed 2019-12-29 23:44:14 -07:00
parent 782de04b42
commit 9027acac22
1 changed files with 0 additions and 3 deletions

View File

@ -3,7 +3,6 @@ package model
import ( import (
"context" "context"
"fmt" "fmt"
"runtime"
"sync/atomic" "sync/atomic"
"time" "time"
@ -147,8 +146,6 @@ func (t *Table) reconcile(ctx context.Context) error {
t.data.Mutex.Lock() t.data.Mutex.Lock()
defer t.data.Mutex.Unlock() defer t.data.Mutex.Unlock()
log.Debug().Msgf("GOROUTINE %d", runtime.NumGoroutine())
factory, ok := ctx.Value(internal.KeyFactory).(Factory) factory, ok := ctx.Value(internal.KeyFactory).(Factory)
if !ok { if !ok {
return fmt.Errorf("expected Factory in context but got %T", ctx.Value(internal.KeyFactory)) return fmt.Errorf("expected Factory in context but got %T", ctx.Value(internal.KeyFactory))