mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Allow multiple static peers in Pinecone iOS/Android demos
This commit is contained in:
parent
34451d21b8
commit
ba66b5a3b9
1 changed files with 3 additions and 1 deletions
|
@ -126,8 +126,10 @@ func (m *DendriteMonolith) SetMulticastEnabled(enabled bool) {
|
||||||
|
|
||||||
func (m *DendriteMonolith) SetStaticPeer(uri string) {
|
func (m *DendriteMonolith) SetStaticPeer(uri string) {
|
||||||
m.PineconeManager.RemovePeers()
|
m.PineconeManager.RemovePeers()
|
||||||
|
for _, uri := range strings.Split(uri, ",") {
|
||||||
m.PineconeManager.AddPeer(strings.TrimSpace(uri))
|
m.PineconeManager.AddPeer(strings.TrimSpace(uri))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (m *DendriteMonolith) DisconnectType(peertype int) {
|
func (m *DendriteMonolith) DisconnectType(peertype int) {
|
||||||
for _, p := range m.PineconeRouter.Peers() {
|
for _, p := range m.PineconeRouter.Peers() {
|
||||||
|
|
Loading…
Reference in a new issue