Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grammar errors #827

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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 cardinal/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func New(namespace, sequencerAddr, routerKey string, world Provider, opts ...Opt
grpc.WithPerRPCCredentials(credentials.NewTokenCredential(routerKey)),
)
if err != nil {
return nil, eris.Wrapf(err, "error dialing shard seqeuncer address at %q", sequencerAddr)
return nil, eris.Wrapf(err, "error dialing shard sequencer address at %q", sequencerAddr)
}
rtr.ShardSequencer = shard.NewTransactionHandlerClient(conn)

Expand Down
2 changes: 1 addition & 1 deletion cardinal/world.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func (w *World) StartGame() error {
return w.server.Serve(ctx)
})
if err := g.Wait(); err != nil {
return eris.Wrap(err, "error occured while running cardinal")
return eris.Wrap(err, "error occurred while running cardinal")
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion cardinal/world_fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func findOpenPort() (string, error) {
return "", eris.Wrap(err, "failed to initialize listener")
}

// Get the autoamtically assigned port number from the listener
// Get the automatically assigned port number from the listener
tcpAddr, err := net.ResolveTCPAddr(l.Addr().Network(), l.Addr().String())
if err != nil {
return "", eris.Wrap(err, "failed to resolve address")
Expand Down
2 changes: 1 addition & 1 deletion relay/nakama/auth/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func checkJWTSecret(logger runtime.Logger) {
// during initialization if the JWT secret isn't set, we'll log a warning message and return a
// ErrBadCustomAuthType if a client tries to use Argus ID custom authentication.
//
// When Supabase rolls out asymmetric JWTs, the JWT secret can be shared because it is essentialy a
// When Supabase rolls out asymmetric JWTs, the JWT secret can be shared because it is essentially a
// public key. If the JWT_SECRET variable isn't set, we can consider fetching a valid public key
// and set it as the value of JWT_SECRET. This way, Argus ID authentication will always be enabled
// (assuming the fetch didn't fail), and we don't have to return an error.
Expand Down
2 changes: 1 addition & 1 deletion relay/nakama/siwe/siwe.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func getNonceStorageObject(
} else if len(objs) == 0 {
// No existing storage object was found, so return a storage object with no nonces and no version
return &nonceStorageObj{
// When this is later saved back to the DB, it will only be successful it the stoage object
// When this is later saved back to the DB, it will only be successful it the storage object
// doesn't already exist in the DB.
Version: "*",
}, nil
Expand Down
2 changes: 1 addition & 1 deletion relay/nakama/testutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func MockMatchWriteKey(key string) interface{} {
//
// This Fake implements the atomic guarantees of StorageRead and StorageWrite.
// In addition, Version field is populated during StorageRead which allows for compare-and-swap writes.
type FakeNakamaModule struct { //nolint:decorder
type FakeNakamaModule struct { //nolint:decoder
runtime.NakamaModule
sync.Mutex
versionItr int
Expand Down