Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
boreq committed Jun 21, 2023
1 parent b83fb92 commit 5f42409
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions cmd/notification-service/di/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,52 +34,3 @@ func buildTransactionFirestoreAdapters(client *googlefirestore.Client, tx *googl
return app.Adapters{}, nil

}

//func newAdvertiser(l identity.Public, config service.Config) (*local.Advertiser, error) {
// return local.NewAdvertiser(l, config.ListenAddress)
//}
//
//func newIntegrationTestConfig(t *testing.T) service.Config {
// dataDirectory := fixtures.Directory(t)
// oldDataDirectory := fixtures.Directory(t)
//
// cfg := service.Config{
// DataDirectory: dataDirectory,
// GoSSBDataDirectory: oldDataDirectory,
// NetworkKey: fixtures.SomeNetworkKey(),
// MessageHMAC: fixtures.SomeMessageHMAC(),
// }
// cfg.SetDefaults()
// return cfg
//}
//
//func newBadger(system logging.LoggingSystem, logger logging.Logger, config service.Config) (*badger.DB, func(), error) {
// badgerDirectory := filepath.Join(config.DataDirectory, "badger")
//
// options := badger.DefaultOptions(badgerDirectory)
// options.Logger = badgeradapters.NewLogger(system, badgeradapters.LoggerLevelWarning)
//
// if config.ModifyBadgerOptions != nil {
// adapter := service.NewBadgerOptionsAdapter(&options)
// config.ModifyBadgerOptions(adapter)
// }
//
// db, err := badger.Open(options)
// if err != nil {
// return nil, nil, errors.Wrap(err, "failed to open the database")
// }
//
// return db, func() {
// if err := db.Close(); err != nil {
// logger.Error().WithError(err).Message("error closing the database")
// }
// }, nil
//}
//
//func privateIdentityToPublicIdentity(p identity.Private) identity.Public {
// return p.Public()
//}
//
//func newContextLogger(loggingSystem logging.LoggingSystem) logging.Logger {
// return logging.NewContextLogger(loggingSystem, "scuttlego")
//}

0 comments on commit 5f42409

Please sign in to comment.