inspector: use existing identity (#952)

This commit is contained in:
JT Olio 2019-01-02 03:45:47 -07:00 committed by Egon Elbre
parent 4a0749e44a
commit d4d0b0d13b

View File

@ -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(),