Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Making Travis Happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarman committed Feb 2, 2017
1 parent 79781a3 commit 40ddfd1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions sda/services/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ type ServiceState struct {
receivedHello bool

//this hold the churn handler; protocol is started there. Only relay has this != nil
churnHandler *churnHandler
churnHandler *churnHandler

//this hold the running protocol (when it runs)
PriFiSDAProtocol *prifi_protocol.PriFiSDAProtocol
PriFiSDAProtocol *prifi_protocol.PriFiSDAProtocol
}

// Storage will be saved, on the contrary of the 'Service'-structure
Expand Down
14 changes: 7 additions & 7 deletions sda/simulation/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package main

import (
"github.com/BurntSushi/toml"
prifi_service "github.com/lbarman/prifi/sda/services"
prifi_protocol "github.com/lbarman/prifi/sda/protocols"
prifi_service "github.com/lbarman/prifi/sda/services"
"gopkg.in/dedis/onet.v1"
"gopkg.in/dedis/onet.v1/log"
"time"
"gopkg.in/dedis/onet.v1/app"
"gopkg.in/dedis/onet.v1/log"
"gopkg.in/dedis/onet.v1/network"
"time"
)

/*
Expand Down Expand Up @@ -63,7 +63,7 @@ func (s *SimulationService) Node(config *onet.SimulationConfig) error {
log.Fatal("Could not register node in SDA Tree", err)
}

s.RelayReportingLimit = 10*100
s.RelayReportingLimit = 10 * 100
s.SocksServerPort = 8080 + index

//assign the roles
Expand All @@ -87,7 +87,7 @@ func (s *SimulationService) Node(config *onet.SimulationConfig) error {
service.SetConfigFromToml(&s.PrifiTomlConfig)

//start this node in the correct setup
var err error = nil
var err error
if index == 0 {
log.Lvl1("Initiating this node as relay")
err = service.StartRelay(group)
Expand Down Expand Up @@ -125,10 +125,10 @@ func (s *SimulationService) Run(config *onet.SimulationConfig) error {
}

//block and get the result from the channel
res := <- service.PriFiSDAProtocol.ResultChannel
res := <-service.PriFiSDAProtocol.ResultChannel
log.Error("Res is", res)

time.Sleep(time.Second)
}
return nil
}
}

0 comments on commit 40ddfd1

Please sign in to comment.