mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rlp/rlpgen: speed up loading packages
This commit is contained in:
parent
1a8a90b7c3
commit
e6187eadbd
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ type Config struct {
|
|||
func (cfg *Config) process() (code []byte, err error) {
|
||||
// Load packages.
|
||||
pcfg := &packages.Config{
|
||||
Mode: packages.NeedName | packages.NeedTypes | packages.NeedImports | packages.NeedDeps,
|
||||
Mode: packages.NeedName | packages.NeedTypes,
|
||||
Dir: cfg.Dir,
|
||||
}
|
||||
ps, err := packages.Load(pcfg, pathOfPackageRLP, ".")
|
||||
|
|
|
|||
Loading…
Reference in a new issue