with actual repos

This commit is contained in:
2022-09-21 21:50:08 +02:00
parent 73be67a0fd
commit 32eef8f3c6
10 changed files with 14 additions and 31 deletions

View File

@@ -13,6 +13,8 @@ import (
func Start(ctx context.Context, logger *zap.Logger) (*serverdeps.ServerDeps, error) {
deps := serverdeps.NewServerDeps(logger)
readyChan := make(chan curre.ComponentsAreReady, 1)
err := curre.NewManager().
Register(
server.NewStorageServer(logger.With(zap.Namespace("storage")), deps),
@@ -20,7 +22,9 @@ func Start(ctx context.Context, logger *zap.Logger) (*serverdeps.ServerDeps, err
Register(
signer.NewOpenPGPApp(deps.GetOpenPGP()),
).
RunNonBlocking(ctx)
RunNonBlocking(ctx, readyChan)
<-readyChan
return deps, err
}

View File

@@ -42,7 +42,7 @@ func NewServerDeps(logger *zap.Logger) *ServerDeps {
openPGPConfig := &signer.OpenPgpConfig{
PrivateKeyFilePath: "./example/testkey.private.pgp",
PrivateKeyPassword: "somepassword",
PrivateKeyIdentity: "octopush@kasperhermansen.com",
PrivateKeyIdentity: "kraken@kasperhermansen.com",
}
deps.openPGP = signer.NewOpenPGP(logger.With(zap.Namespace("openpgp")), openPGPConfig)