luis 7 gadi atpakaļ
vecāks
revīzija
a7d113e4a7
3 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 1 0
      .gitignore
  2. 2 3
      go/src/flow/flow.go
  3. 0 1
      go/src/flow/operation.go

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 DIST
+store

+ 2 - 3
go/src/flow/flow.go

@@ -22,7 +22,6 @@ var (
 type Data = interface{}
 
 type opEntry struct {
-	sync.Mutex
 	name     string
 	inputs   []*operation // still figuring, might be operation
 	executor interface{}
@@ -87,7 +86,7 @@ func (f *Flow) DefOp(id string, name string, params ...interface{}) Operation {
 		f.err = err
 		return opNil(f)
 	}
-	f.operations.Store(id, &opEntry{sync.Mutex{}, name, inputs, executor})
+	f.operations.Store(id, &opEntry{name, inputs, executor})
 	return opFunc(f, id)
 }
 
@@ -127,7 +126,7 @@ func (f *Flow) Op(name string, params ...interface{}) Operation {
 		if _, ok := f.operations.Load(id); ok {
 			continue
 		}
-		f.operations.Store(id, &opEntry{sync.Mutex{}, name, inputs, executor})
+		f.operations.Store(id, &opEntry{name, inputs, executor})
 		return opFunc(f, id)
 	}
 	// Initialize opfunc maybe

+ 0 - 1
go/src/flow/operation.go

@@ -35,7 +35,6 @@ type Operation interface { // Id perhaps?
 
 //local operation information
 type operation struct {
-	sync.Mutex
 	flow    *Flow
 	id      interface{} // Interface key
 	kind    string