remove the verbose logging stuff. clean up README and comments from the weird nonsense LLMs added

This commit is contained in:
2026-03-07 17:08:26 -05:00
parent 6450f905c3
commit 29136a3740
21 changed files with 131 additions and 154 deletions

View File

@@ -31,7 +31,7 @@ Batch_Write_Table_Request :: struct {
}
Batch_Write_Result :: struct {
// UnprocessedItems requests that failed and should be retried.
// UnprocessedItems requests that failed and should be retried.
// For now we process everything or return an error, so this is
// typically empty. Populated only on partial failures.
unprocessed: [dynamic]Batch_Write_Table_Request,
@@ -48,7 +48,7 @@ batch_write_result_destroy :: proc(result: ^Batch_Write_Result) {
}
// ============================================================================
// BatchWriteItem Execute a batch of put/delete operations
// BatchWriteItem Execute a batch of put/delete operations
//
// DynamoDB semantics:
// - Operations within a batch are NOT atomic (some may succeed, some fail)
@@ -93,7 +93,7 @@ batch_write_item :: proc(
if var_err != .None {
#partial switch var_err {
case .Missing_Key_Attribute, .Invalid_Key, .Serialization_Error:
// Hard validation errors fail the entire batch
// Hard validation errors fail the entire batch
batch_write_result_destroy(&result)
delete(failed_requests)
return result, var_err
@@ -106,7 +106,7 @@ batch_write_item :: proc(
return result, .Table_Not_Found
case .RocksDB_Error, .Item_Not_Found:
// Genuinely transient/infrastructure errors add to UnprocessedItems.
// Genuinely transient/infrastructure errors add to UnprocessedItems.
failed_item := item_deep_copy(req.item)
append(&failed_requests, Write_Request{
type = req.type,
@@ -176,7 +176,7 @@ batch_get_result_destroy :: proc(result: ^Batch_Get_Result) {
}
// ============================================================================
// BatchGetItem Retrieve multiple items from one or more tables
// BatchGetItem Retrieve multiple items from one or more tables
//
// DynamoDB semantics:
// - Each key is fetched independently
@@ -216,14 +216,14 @@ batch_get_item :: proc(
if get_err != .None && get_err != .Item_Not_Found {
#partial switch get_err {
case .Missing_Key_Attribute, .Invalid_Key, .Serialization_Error:
// Hard validation error fail the entire batch
// Hard validation error fail the entire batch
batch_get_result_destroy(&result)
delete(found_items)
delete(failed_keys)
return result, get_err
case .RocksDB_Error, .Table_Not_Found:
// Transient error add to unprocessed
// Transient error add to unprocessed
append(&failed_keys, item_deep_copy(key))
continue