mesh/delivery-group group feat/774-l3-reland rejected: composed together: the checker's verdict at the members' heads (b48c90fea31f): integration: mesh-self-ch…
mesh/delivery closed: a newer head of the same pull request
mesh/check failed: integration: mesh-self-check/cmd/mesh-self-check.TestTheSelfCheckWholeRunsOnTheBus: the run answered {Run:doctor-1793351737-1 At:20…
One commit with exactly the tree of the reviewed head35b4509c0a, on main12c2574c9d, so two compiled programs added and removed on the branch leave no trace in history (issue 1577).
17 lines
420 B
Go
17 lines
420 B
Go
package main
|
|
|
|
import (
|
|
"nats-tools/internal/busconn"
|
|
|
|
"github.com/nats-io/nats.go"
|
|
)
|
|
|
|
// Credential is what the mesh seals to a module so it can reach the bus; see busconn.
|
|
type Credential = busconn.Credential
|
|
|
|
func readCredential(path string) (Credential, error) { return busconn.Read(path) }
|
|
|
|
func connect(server string, c Credential) (*nats.Conn, error) {
|
|
return busconn.Connect(server, c, "mesh-nats-snapshot")
|
|
}
|