MCPcopy
hub / github.com/segmentio/kafka-go / SetVersions

Method SetVersions

protocol/conn.go:71–79  ·  view source on GitHub ↗
(versions map[ApiKey]int16)

Source from the content-addressed store, hash-verified

69}
70
71func (c *Conn) SetVersions(versions map[ApiKey]int16) {
72 connVersions := make(map[ApiKey]int16, len(versions))
73
74 for k, v := range versions {
75 connVersions[k] = v
76 }
77
78 c.versions.Store(connVersions)
79}
80
81func (c *Conn) RoundTrip(msg Message) (Message, error) {
82 correlationID := atomic.AddInt32(&c.idgen, +1)

Callers 1

connectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected