From 513c72ec8bdc19e51da212de08691b0c78d1dfe8 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 31 Oct 2014 11:20:15 -0700 Subject: [PATCH] wal: update the docs to show the optional metadata field --- wal/doc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wal/doc.go b/wal/doc.go index 8080fcabf..4e6428525 100644 --- a/wal/doc.go +++ b/wal/doc.go @@ -22,7 +22,8 @@ A WAL is created at a particular directory and is made up of a number of discrete WAL files. Inside of each file the raft state and entries are appended to it with the Save method: - w, err := wal.Create("/var/lib/etcd") + metadata := []byte{} + w, err := wal.Create("/var/lib/etcd", metadata) ... err := w.Save(s, ents)