Skip to content

Commit a6e0d57

Browse files
committed
Fix incorrect argument passing of 'admissioner'
1 parent 6ca8a64 commit a6e0d57

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

libcachesim/cache.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ def __init__(
556556
_cache=BeladySize_init(
557557
_create_common_params(cache_size, default_ttl, hashpower, consider_obj_metadata),
558558
cache_specific_params,
559-
admissioner=admissioner
560-
)
559+
),
560+
admissioner=admissioner
561561
)
562562

563563

@@ -700,8 +700,8 @@ def __init__(
700700
_cache=ThreeLCache_init(
701701
_create_common_params(cache_size, default_ttl, hashpower, consider_obj_metadata),
702702
cache_specific_params,
703-
admissioner=admissioner
704-
)
703+
),
704+
admissioner=admissioner
705705
)
706706

707707

@@ -746,8 +746,8 @@ def __init__(
746746
_cache=GLCache_init(
747747
_create_common_params(cache_size, default_ttl, hashpower, consider_obj_metadata),
748748
cache_specific_params,
749-
admissioner=admissioner
750-
)
749+
),
750+
admissioner=admissioner
751751
)
752752

753753

@@ -780,8 +780,8 @@ def __init__(
780780
_cache=LRB_init(
781781
_create_common_params(cache_size, default_ttl, hashpower, consider_obj_metadata),
782782
cache_specific_params,
783-
admissioner=admissioner
784-
)
783+
),
784+
admissioner=admissioner
785785
)
786786

787787

src/export_admissioner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void export_admissioner_creator(py::module &m, const std::string &name) {
135135
// Admissioner is exported lower down
136136
admissioner_t *admissioner = fn(params);
137137
if (!admissioner)
138-
throw std::runtime_error("Creater for " + name + " returned NULL");
138+
throw std::runtime_error("Creator for " + name + " returned NULL");
139139
return admissioner;
140140
},
141141
py::return_value_policy::reference);

0 commit comments

Comments
 (0)