diff --git a/README.md b/README.md index 70e7a0f..bbe2d49 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Whether you're running your own nodes or using a managed provider, node RPCs often go down or fall behind. Naive load balancing between nodes doesn't account for [data consistency issues](https://alchemy.com/blog/data-accuracy). -node-gateway makes it easier to run reliable and accurate node infrastructure +node-gateway makes it easier to run a reliable and accurate node infrastructure for dApp developers, traders, and stakers. ## Example use cases diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go index d1cbc76..7bb2546 100644 --- a/cmd/gateway/main.go +++ b/cmd/gateway/main.go @@ -75,7 +75,7 @@ func main() { } }() - // Wait for an Unix exit signal. + // Wait for a Unix exit signal. signalChannel := make(chan os.Signal, 1) signal.Notify(signalChannel, syscall.SIGINT, syscall.SIGTERM) diff --git a/internal/cache/rpc_cache_test.go b/internal/cache/rpc_cache_test.go index 14fc23f..1ceab04 100644 --- a/internal/cache/rpc_cache_test.go +++ b/internal/cache/rpc_cache_test.go @@ -184,7 +184,7 @@ func TestHandleRequestParallel(t *testing.T) { result, cached, err := cache.HandleRequestParallel(chainName, reqBody, originFunc) - // Add small sleep to allow async cache set to complete + // Add a small sleep to allow async cache set to complete time.Sleep(5 * time.Millisecond) // Verify error handling diff --git a/internal/metrics/metrics.go b/internal/metrics/metrics.go index d2e74f0..9de7901 100644 --- a/internal/metrics/metrics.go +++ b/internal/metrics/metrics.go @@ -509,7 +509,7 @@ func (m *Server) Shutdown() error { return m.server.Shutdown(context.Background()) } -func getNumFileDesciptors() (int, error) { +func getNumFileDescriptors() (int, error) { pid := os.Getpid() fds, err := os.Open(fmt.Sprintf("/proc/%d/fd", pid)) @@ -534,7 +534,7 @@ func (m *Server) StartEmittingSystemStats() { case <-m.shutdownChannel: return case <-time.After(systemStatsEmissionInterval): - numFileDescriptors, err := getNumFileDesciptors() + numFileDescriptors, err := getNumFileDescriptors() zap.L().Debug("Emitting system stats.", zap.Int("numFileDescriptors", numFileDescriptors)) if err != nil {