diff --git a/batch_command.go b/batch_command.go index 7abd6d75..f2de1d57 100644 --- a/batch_command.go +++ b/batch_command.go @@ -58,7 +58,7 @@ func (cmd *batchCommand) setInDoubt(ifc batcher) { } func (cmd *batchCommand) inDoubt() { - // do nothing by defaut + // do nothing by default } func (cmd *batchCommand) prepareRetry(ifc command, isTimeout bool) bool { diff --git a/batch_record.go b/batch_record.go index 42315b80..248d4516 100644 --- a/batch_record.go +++ b/batch_record.go @@ -51,7 +51,7 @@ type BatchRecordIfc interface { equals(BatchRecordIfc) bool } -// BatchRecord encasulates the Batch key and record result. +// BatchRecord encapsulates the Batch key and record result. type BatchRecord struct { // Key. Key *Key @@ -67,7 +67,7 @@ type BatchRecord struct { // Err encapsulates the possible error chain for this key Err Error - // InDoubt signifies the possiblity that the write command may have completed even though an error + // InDoubt signifies the possibility that the write command may have completed even though an error // occurred for this record. This may be the case when a client error occurs (like timeout) // after the command was sent to the server. InDoubt bool diff --git a/bit_resize_flags.go b/bit_resize_flags.go index d9f3f3ce..9ed185d5 100644 --- a/bit_resize_flags.go +++ b/bit_resize_flags.go @@ -18,7 +18,7 @@ package aerospike type BitResizeFlags int const ( - // BitResizeFlagsDefault specifies the defalt flag. + // BitResizeFlagsDefault specifies the default flag. BitResizeFlagsDefault BitResizeFlags = 0 // BitResizeFlagsFromFront Adds/removes bytes from the beginning instead of the end. diff --git a/cdt_bitwise_test.go b/cdt_bitwise_test.go index 5a5547fb..b7c7e1b4 100644 --- a/cdt_bitwise_test.go +++ b/cdt_bitwise_test.go @@ -222,7 +222,7 @@ var _ = gg.Describe("CDT Bitwise Test", func() { 0xc1}, as.BitSetOp(putMode, cdtBinName, 1, 1, bit0), as.BitSetOp(putMode, cdtBinName, 15, 1, bit0), - // SUM Offest Size + // SUM Offset Size as.BitSetOp(putMode, cdtBinName, 16, 24, bits1), // Y Y Y as.BitSetOp(putMode, cdtBinName, 40, 22, bits1), // N Y N as.BitSetOp(putMode, cdtBinName, 73, 21, bits1), // N N N diff --git a/cdt_list.go b/cdt_list.go index 4cacef39..69413889 100644 --- a/cdt_list.go +++ b/cdt_list.go @@ -160,7 +160,7 @@ const ( ListReturnTypeInverted ListReturnType = 0x10000 ) -// ListSortFlags detemines sort flags for CDT lists +// ListSortFlags determines sort flags for CDT lists type ListSortFlags int const ( @@ -172,7 +172,7 @@ const ( ListSortFlagsDropDuplicates ListSortFlags = 2 ) -// ListWriteFlags detemines write flags for CDT lists +// ListWriteFlags determines write flags for CDT lists // type ListWriteFlags int const ( diff --git a/client_appengine_exclusions.go b/client_appengine_exclusions.go index 93ba5e14..d19a248a 100644 --- a/client_appengine_exclusions.go +++ b/client_appengine_exclusions.go @@ -67,7 +67,7 @@ func (clnt *Client) QueryAggregate(policy *QueryPolicy, statement *Statement, pa inputChan := make(chan interface{}, 4096) // 4096 = number of partitions istream := lualib.NewStream(luaInstance, inputChan) - // Output Channe; + // Output Channel; outputChan := make(chan interface{}) ostream := lualib.NewStream(luaInstance, outputChan) diff --git a/command.go b/command.go index 9631aa83..b1d7a643 100644 --- a/command.go +++ b/command.go @@ -1192,7 +1192,7 @@ func (cmd *baseCommand) setBatchOperateIfcOffsets( cmd.dataOffset++ } else { // Must write full header and namespace/set/bin names. - cmd.dataOffset += 12 // header(4) + ttl(4) + fielCount(2) + opCount(2) = 12 + cmd.dataOffset += 12 // header(4) + ttl(4) + fieldCount(2) + opCount(2) = 12 cmd.dataOffset += len(key.namespace) + int(_FIELD_HEADER_SIZE) cmd.dataOffset += len(key.setName) + int(_FIELD_HEADER_SIZE) cmd.sizeTxnBatch(txn, ver, record.BatchRec().hasWrite) @@ -1379,7 +1379,7 @@ func (cmd *baseCommand) setBatchOperateReadOffsets( cmd.dataOffset++ } else { // Must write full header and namespace/set/bin names. - cmd.dataOffset += 12 // header(4) + ttl(4) + fielCount(2) + opCount(2) = 12 + cmd.dataOffset += 12 // header(4) + ttl(4) + fieldCount(2) + opCount(2) = 12 cmd.dataOffset += len(key.namespace) + int(_FIELD_HEADER_SIZE) cmd.dataOffset += len(key.setName) + int(_FIELD_HEADER_SIZE) cmd.sizeTxnBatch(txn, ver, record.BatchRec().hasWrite) @@ -1544,7 +1544,7 @@ func (cmd *baseCommand) setBatchOperateOffsets( cmd.dataOffset++ } else { // Must write full header and namespace/set/bin names. - cmd.dataOffset += 12 // header(4) + ttl(4) + fielCount(2) + opCount(2) = 12 + cmd.dataOffset += 12 // header(4) + ttl(4) + fieldCount(2) + opCount(2) = 12 cmd.dataOffset += len(key.namespace) + int(_FIELD_HEADER_SIZE) cmd.dataOffset += len(key.setName) + int(_FIELD_HEADER_SIZE) cmd.sizeTxnBatch(txn, ver, attr.hasWrite) diff --git a/config.go b/config.go index a0b6ad47..57ccdae1 100644 --- a/config.go +++ b/config.go @@ -450,7 +450,7 @@ func (dc *DynConfig) watchConfig(interval time.Duration) { // This allows the config to be updated dynamically without restarting the client. dc.lock.RLock() var mergedConfigInterval time.Duration - // Handle the condition where dynamic config is eneabled but config was not loaded becuase + // Handle the condition where dynamic config is enabled but config was not loaded because // the file could not be found or the url is not valid. In that case we will use the interval passed // in or use the default interval of 1 second. if dc.config == nil { diff --git a/docs/aerospike.md b/docs/aerospike.md index 47047ccc..1258bbf1 100644 --- a/docs/aerospike.md +++ b/docs/aerospike.md @@ -72,7 +72,7 @@ Example: client, err := as.NewClient("127.0.0.1", 3000) ``` -For detals, see [Client Class](client.md). +For details, see [Client Class](client.md).