Skip to content

Commit

Permalink
fix KV case
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Fouques authored and nekufa committed Jul 4, 2024
1 parent 219c5a8 commit 7aeaf92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/KeyValue/Bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getStream(): Stream
{
if (!$this->stream) {
$this->stream = $this->client->getApi()
->getStream(strtoupper("kv_$this->name"));
->getStream("KV_$this->name");

if (!$this->stream->exists()) {
$this->getConfiguration()
Expand All @@ -112,7 +112,7 @@ public function getStream(): Stream

public function getSubject(string $key): string
{
return strtoupper("\$kv.$this->name.$key");
return "\$KV.$this->name.$key";
}

public function delete($key)
Expand Down
2 changes: 1 addition & 1 deletion src/KeyValue/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function configureStream(StreamConfiguration $configuration): self
->setMaxMessageSize($this->getMaxValueSize())
->setMaxMessagesPerSubject($this->getHistory() ?? 1)
->setReplicas($this->getReplicas() ?? 1)
->setSubjects([strtoupper("\$kv.$this->name.*")]);
->setSubjects(["\$KV.$this->name.*"]);

return $this;
}
Expand Down

0 comments on commit 7aeaf92

Please sign in to comment.