Strip the classic aslam comments
This commit is contained in:
parent
47bfdbe49e
commit
7183601d3b
@ -1,7 +1,6 @@
|
|||||||
package micro
|
package micro
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
@ -42,9 +41,7 @@ func (s *service) run(exit chan bool) {
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-t.C:
|
case <-t.C:
|
||||||
fmt.Println("heartbeat")
|
|
||||||
if err := s.opts.Server.Register(server.RegisterTTL(s.opts.RegisterTTL)); err != nil {
|
if err := s.opts.Server.Register(server.RegisterTTL(s.opts.RegisterTTL)); err != nil {
|
||||||
fmt.Println("FUCK", err)
|
|
||||||
}
|
}
|
||||||
case <-exit:
|
case <-exit:
|
||||||
t.Stop()
|
t.Stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user