Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion internal/cache/rpc_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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 {
Expand Down