mirror of https://github.com/status-im/consul.git
Apply suggestions from code review
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
This commit is contained in:
parent
737c0097e0
commit
f9aef8018b
|
@ -301,7 +301,7 @@ func NewACLResolver(config *ACLResolverConfig) (*ACLResolver, error) {
|
|||
return nil, fmt.Errorf("ACL Resolver must be initialized with a config")
|
||||
}
|
||||
if config.Backend == nil {
|
||||
return nil, fmt.Errorf("ACL Resolver must be initialized with a valid delegate")
|
||||
return nil, fmt.Errorf("ACL Resolver must be initialized with a valid backend")
|
||||
}
|
||||
|
||||
if config.Logger == nil {
|
||||
|
|
|
@ -110,7 +110,7 @@ func NewReplicator(config *ReplicatorConfig) (*Replicator, error) {
|
|||
return nil, fmt.Errorf("Cannot create the Replicator without a config")
|
||||
}
|
||||
if config.Delegate == nil {
|
||||
return nil, fmt.Errorf("Cannot create the Replicator without a Backend set in the config")
|
||||
return nil, fmt.Errorf("Cannot create the Replicator without a Delegate set in the config")
|
||||
}
|
||||
if config.Logger == nil {
|
||||
logger := hclog.New(&hclog.LoggerOptions{})
|
||||
|
|
Loading…
Reference in New Issue