etl: do sort and file flush in another goroutine (#7915)

This commit is contained in:
Alex Sharov 2023-09-06 14:51:23 +07:00 committed by GitHub
parent 1160df12a3
commit ff54df073e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
package devnet
import (
context "context"
"context"
"math/big"
"github.com/ledgerwatch/log/v3"

View File

@ -1,7 +1,7 @@
package devnet
import (
context "context"
"context"
"errors"
"fmt"
"math/big"

View File

@ -6,9 +6,8 @@ import (
"os"
"os/signal"
"path/filepath"
"strings"
dbg "runtime/debug"
"strings"
"syscall"
"time"

View File

@ -5,10 +5,11 @@ import (
"encoding/binary"
"errors"
"fmt"
"github.com/ledgerwatch/erigon/turbo/backup"
"os"
"text/tabwriter"
"github.com/ledgerwatch/erigon/turbo/backup"
"github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/kv"
"github.com/ledgerwatch/erigon-lib/kv/kvcfg"

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.19
require (
github.com/erigontech/mdbx-go v0.27.14
github.com/ledgerwatch/erigon-lib v0.0.0-20230906074044-ab828e32589a
github.com/ledgerwatch/erigon-lib v0.0.0-20230906074517-9bd101cf0dce
github.com/ledgerwatch/erigon-snapshot v1.2.1-0.20230818153427-cc16b83a89be
github.com/ledgerwatch/log/v3 v3.9.0
github.com/ledgerwatch/secp256k1 v1.0.0

4
go.sum
View File

@ -497,8 +497,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kylelemons/godebug v0.0.0-20170224010052-a616ab194758 h1:0D5M2HQSGD3PYPwICLl+/9oulQauOuETfgFvhBDffs0=
github.com/leanovate/gopter v0.2.9 h1:fQjYxZaynp97ozCzfOyOuAGOU4aU/z37zf/tOujFk7c=
github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8=
github.com/ledgerwatch/erigon-lib v0.0.0-20230906074044-ab828e32589a h1:8f6ipOLgir2x8x49gg/LTy+5iYh1YnEGRFdSS4BfSsY=
github.com/ledgerwatch/erigon-lib v0.0.0-20230906074044-ab828e32589a/go.mod h1:GAusrYt0h9+407hBbOjfMzoFIX14xzXTl250QJBhTpE=
github.com/ledgerwatch/erigon-lib v0.0.0-20230906074517-9bd101cf0dce h1:fyvkMYAvSLzYJZziKvElUmk/lqo++G6mv6dY6lkTRnE=
github.com/ledgerwatch/erigon-lib v0.0.0-20230906074517-9bd101cf0dce/go.mod h1:GAusrYt0h9+407hBbOjfMzoFIX14xzXTl250QJBhTpE=
github.com/ledgerwatch/erigon-snapshot v1.2.1-0.20230818153427-cc16b83a89be h1:6/4MXkk5AoKUHivIpCokHOX/WV9L7tXgURp1k8KfmSM=
github.com/ledgerwatch/erigon-snapshot v1.2.1-0.20230818153427-cc16b83a89be/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/ledgerwatch/log/v3 v3.9.0 h1:iDwrXe0PVwBC68Dd94YSsHbMgQ3ufsgjzXtFNFVZFRk=