diff --git a/config/config.go b/config/config.go index 64d400ca..9d442ad3 100644 --- a/config/config.go +++ b/config/config.go @@ -180,7 +180,7 @@ func SetVip(newVip *viper.Viper) { vip = newVip } -// ReadConfigFromJsonString function reads settigs from json string to the +// ReadConfigFromJsonString function reads settings from json string to the // config instance. String should contain valid JSON config. func ReadConfigFromJsonString(config *viper.Viper, json string) error { config.SetConfigType("json") diff --git a/handler/interceptors.go b/handler/interceptors.go index 2df91152..2919da91 100644 --- a/handler/interceptors.go +++ b/handler/interceptors.go @@ -225,7 +225,7 @@ func (interceptor *rateLimitInterceptor) intercept(srv any, ss grpc.ServerStream return nil } -// GrpcStreamInterceptor returns gRPC interceptor to validate payment. If +// GrpcPaymentValidationInterceptor returns gRPC interceptor to validate payment. If // blockchain is disabled then noOpInterceptor is returned. func GrpcPaymentValidationInterceptor(serviceData *blockchain.ServiceMetadata, defaultPaymentHandler PaymentHandler, paymentHandler ...PaymentHandler) grpc.StreamServerInterceptor { interceptor := &paymentValidationInterceptor{ diff --git a/logger/README.md b/logger/README.md index 9cd80f71..e5277398 100644 --- a/logger/README.md +++ b/logger/README.md @@ -168,5 +168,5 @@ configuration is one JSON object located in ```log``` field. ### Adding new hooks implementations -Adding a new hook implementation is trivial. You should implement interface hook with method `call` which inputs `entry zapcore.Entry`. Also you need impelement init method which inputs configuration as [Viper](https://godoc.org/github.com/spf13/viper#Viper) config and returns new instance of the Hook structure. Then register the new hook +Adding a new hook implementation is trivial. You should implement interface hook with method `call` which inputs `entry zapcore.Entry`. Also you need implement init method which inputs configuration as [Viper](https://godoc.org/github.com/spf13/viper#Viper) config and returns new instance of the Hook structure. Then register the new hook type by calling RegisterHookType() function from init() method. Please see "email" hook implementation as example in hook.go file. diff --git a/logger/logger_test.go b/logger/logger_test.go index 4728d321..4d37d481 100644 --- a/logger/logger_test.go +++ b/logger/logger_test.go @@ -89,11 +89,11 @@ func TestGetLocationTimezone(t *testing.T) { testCases := []testGetLocationTimezone{ { - name: "Valid timzone", + name: "Valid timezone", timezone: "UTC", }, { - name: "Invalid timzone", + name: "Invalid timezone", timezone: "INVALID", expectedError: "unknown time zone INVALID", }, @@ -326,7 +326,7 @@ func TestCreateWriterSyncer(t *testing.T) { testCases := []createWriterSyncerTestCases{ { - name: "Valid signle output type", + name: "Valid single output type", outputType: "file", filePatternName: "./snet-daemon.%Y%m%d.log", },