inspector: use existing identity (#952)
This commit is contained in:
parent
4a0749e44a
commit
d4d0b0d13b
@ -49,14 +49,9 @@ func (c Config) Run(ctx context.Context, server *provider.Provider) (err error)
|
||||
return Error.New("unable to get master db instance")
|
||||
}
|
||||
|
||||
id, err := provider.NewFullIdentity(ctx, 12, 4)
|
||||
if err != nil {
|
||||
return Error.New("error creating inspector identity:")
|
||||
}
|
||||
|
||||
srv := &Server{
|
||||
dht: kad,
|
||||
identity: id,
|
||||
identity: server.Identity(),
|
||||
cache: ol,
|
||||
statdb: sdb.StatDB(),
|
||||
logger: zap.L(),
|
||||
|
Loading…
Reference in New Issue
Block a user