mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Add semaphore for API queries to SQL
This commit is contained in:
@@ -28,7 +28,7 @@ func (a *API) postPoolTx(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
// Insert to DB
|
||||
if err := a.l2.AddTx(writeTx); err != nil {
|
||||
if err := a.l2.AddTxAPI(writeTx); err != nil {
|
||||
retSQLErr(err, c)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user