From 24fd126822bbc66d8188219ca494d37aacd3420d Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Tue, 9 Sep 2014 14:37:32 -0700 Subject: [PATCH] *: stop using 0xBEEF Using 0xBEEF is annoying in examples because it makes it makes it look like the user can use ascii or something. In the Procfile use 0x0,0x1,0x2,etc and use 0xBAD0 in test. --- Procfile | 6 +++--- wal/wal_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Procfile b/Procfile index 31b9c0680..92606f71e 100644 --- a/Procfile +++ b/Procfile @@ -1,3 +1,3 @@ -etcd0: ./etcd -id 0xBEEF0 -l :8080 -peers '0xBEEF0=localhost:8080&0xBEEF1=localhost:8081&0xBEEF2=localhost:8082' -etcd1: ./etcd -id 0xBEEF1 -l :8081 -peers '0xBEEF0=localhost:8080&0xBEEF1=localhost:8081&0xBEEF2=localhost:8082' -etcd2: ./etcd -id 0xBEEF2 -l :8082 -peers '0xBEEF0=localhost:8080&0xBEEF1=localhost:8081&0xBEEF2=localhost:8082' +etcd0: ./etcd -id 0x0 -l :8080 -peers '0x0=localhost:8080&0x1=localhost:8081&0x2=localhost:8082' +etcd1: ./etcd -id 0x1 -l :8081 -peers '0x0=localhost:8080&0x1=localhost:8081&0x2=localhost:8082' +etcd2: ./etcd -id 0x2 -l :8082 -peers '0x0=localhost:8080&0x1=localhost:8081&0x2=localhost:8082' diff --git a/wal/wal_test.go b/wal/wal_test.go index d66dbda9a..944c9f182 100644 --- a/wal/wal_test.go +++ b/wal/wal_test.go @@ -158,7 +158,7 @@ func TestRecover(t *testing.T) { if err != nil { t.Fatal(err) } - i := &raftpb.Info{Id: int64(0xBEEF)} + i := &raftpb.Info{Id: int64(0xBAD0)} if err = w.SaveInfo(i); err != nil { t.Fatal(err) } @@ -275,7 +275,7 @@ func TestRecoverAfterCut(t *testing.T) { if err != nil { t.Fatal(err) } - info := &raftpb.Info{Id: int64(0xBEEF)} + info := &raftpb.Info{Id: int64(0xBAD1)} if err = w.SaveInfo(info); err != nil { t.Fatal(err) }