code: func newNATSTransportWithConfig(id string, conn *nats.Conn, config *raft.NetworkTransportConfig) (*raft.NetworkTransport, error) {
  	if config.Timeout == 0 {
  		config.Timeout = 2 * time.Second
  	}
  	return createNATSTransport(id, conn, config.Logger, config.Timeout, func(stream raft.StreamLayer) *raft.NetworkTransport {
  		config.Stream = stream
  		return raft.NewNetworkTransportWithConfig(config)
  	})
  }
docs: // newNATSTransportWithConfig returns a raft.NetworkTransport implemented
  // with NATS as the transport layer, using the given config struct.