Browse Source

elog: remove elog

Xiang Li 11 years ago
parent
commit
aab41f06d0
2 changed files with 2 additions and 14 deletions
  1. 0 11
      elog/elog.go
  2. 2 3
      etcdserver/etcdhttp/peers.go

+ 0 - 11
elog/elog.go

@@ -1,11 +0,0 @@
-package elog
-
-import (
-	. "log"
-	"runtime"
-)
-
-func TODO() {
-	_, file, line, _ := runtime.Caller(1)
-	Printf("TODO: %s:%d", file, line)
-}

+ 2 - 3
etcdserver/etcdhttp/peers.go

@@ -10,7 +10,6 @@ import (
 	"sort"
 	"sort"
 	"strconv"
 	"strconv"
 
 
-	"github.com/coreos/etcd/elog"
 	"github.com/coreos/etcd/raft/raftpb"
 	"github.com/coreos/etcd/raft/raftpb"
 )
 )
 
 
@@ -146,12 +145,12 @@ func send(c *http.Client, scheme string, p Peers, m raftpb.Message) {
 func httpPost(c *http.Client, url string, data []byte) bool {
 func httpPost(c *http.Client, url string, data []byte) bool {
 	resp, err := c.Post(url, "application/protobuf", bytes.NewBuffer(data))
 	resp, err := c.Post(url, "application/protobuf", bytes.NewBuffer(data))
 	if err != nil {
 	if err != nil {
-		elog.TODO()
+		// TODO: log the error?
 		return false
 		return false
 	}
 	}
 	resp.Body.Close()
 	resp.Body.Close()
 	if resp.StatusCode != http.StatusNoContent {
 	if resp.StatusCode != http.StatusNoContent {
-		elog.TODO()
+		// TODO: log the error?
 		return false
 		return false
 	}
 	}
 	return true
 	return true