Commit ccf08a43 authored by vicotor's avatar vicotor

update code

parent 36eed812
......@@ -37,8 +37,6 @@ var (
)
func (s *Dao) HandleEvents(chain ChainInterface, logs []types.Log) error {
s.handleMux.Lock()
defer s.handleMux.Unlock()
cname := chain.Name()
......@@ -61,7 +59,9 @@ func (s *Dao) HandleEvents(chain ChainInterface, logs []types.Log) error {
}
allLogs = append(allLogs, receipt.Logs...)
}
s.handleMux.Lock()
defer s.handleMux.Unlock()
// begin orm transaction
//supportSession := s.SupportsTransactions()
var ctx context.Context = context.Background()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment