Skip to content

README mentions partitions-for but it doesn't exist  #5

@aaelony

Description

@aaelony

The README shows an example with (partitions-for p "test") but a clone and grep of the project lacks the defn for this entirely.

$  grep -Rn partitions-for *
README.md:146:    (partitions-for p "test")))
README.md:240:      (println "Topic Partitions for our topic:" (partitions-for c topic))
README.md:511:* If you already are inside a consumer or producer, `list-topics` and `partitions-for` return some information, based on the context.
src/franzy/clients/cluster.clj:91:(defn partitions-for-node
src/franzy/clients/cluster.clj:97:(defn partitions-for-topic
src/franzy/clients/consumer/client.clj:69:  (partitions-for [_ topic]
src/franzy/clients/producer/client.clj:80:  (partitions-for [_ topic]
test/franzy/clients/cluster_tests.clj:31:  (cluster/partitions-for-topic mock-cluster "fried-side-items") => [{:topic            "fried-side-items",
test/franzy/clients/cluster_tests.clj:92:  (let [partition-info-coll (cluster/partitions-for-node mock-cluster 1)]
test/franzy/clients/cluster_tests.clj:121:  (let [partition-info-coll (cluster/partitions-for-topic mock-cluster "excel-database")]

Perhaps a full namespace to look up the source would be useful?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions