@@ -51,7 +51,7 @@ type Publishers struct {
51
51
52
52
type Bootstrap struct {
53
53
logger zerolog.Logger
54
- config * config.Config
54
+ config config.Config
55
55
client * requester.CrossSporkClient
56
56
storages * Storages
57
57
publishers * Publishers
@@ -63,7 +63,7 @@ type Bootstrap struct {
63
63
db * pebbleDB.DB
64
64
}
65
65
66
- func New (config * config.Config ) (* Bootstrap , error ) {
66
+ func New (config config.Config ) (* Bootstrap , error ) {
67
67
logger := zerolog .New (config .LogWriter ).
68
68
With ().Timestamp ().Str ("version" , api .Version ).
69
69
Logger ().Level (config .LogLevel )
@@ -432,7 +432,7 @@ func StartEngine(
432
432
}
433
433
434
434
// setupCrossSporkClient sets up a cross-spork AN client.
435
- func setupCrossSporkClient (config * config.Config , logger zerolog.Logger ) (* requester.CrossSporkClient , error ) {
435
+ func setupCrossSporkClient (config config.Config , logger zerolog.Logger ) (* requester.CrossSporkClient , error ) {
436
436
// create access client with cross-spork capabilities
437
437
currentSporkClient , err := grpc .NewClient (
438
438
config .AccessNodeHost ,
@@ -474,7 +474,7 @@ func setupCrossSporkClient(config *config.Config, logger zerolog.Logger) (*reque
474
474
// setupStorage creates storage and initializes it with configured starting cadence height
475
475
// in case such a height doesn't already exist in the database.
476
476
func setupStorage (
477
- config * config.Config ,
477
+ config config.Config ,
478
478
client * requester.CrossSporkClient ,
479
479
logger zerolog.Logger ,
480
480
) (* pebbleDB.DB , * Storages , error ) {
@@ -571,7 +571,7 @@ func setupStorage(
571
571
// Run will run complete bootstrap of the EVM gateway with all the engines.
572
572
// Run is a blocking call, but it does signal readiness of the service
573
573
// through a channel provided as an argument.
574
- func Run (ctx context.Context , cfg * config.Config , ready component.ReadyFunc ) error {
574
+ func Run (ctx context.Context , cfg config.Config , ready component.ReadyFunc ) error {
575
575
boot , err := New (cfg )
576
576
if err != nil {
577
577
return err
0 commit comments