Hiding cursor sequence value.
diff --git a/cursor.go b/cursor.go
index b5980e6..684ab87 100644
--- a/cursor.go
+++ b/cursor.go
@@ -6,22 +6,22 @@
)
type Cursor struct {
- Sequence int64
+ sequence int64
padding [cpuCacheLinePadding]int64
}
func NewCursor() *Cursor {
- return &Cursor{Sequence: InitialSequenceValue}
+ return &Cursor{sequence: InitialSequenceValue}
}
// TODO: ARM, i386-specific methods
func (this *Cursor) Read(minimum int64) int64 {
- return this.Sequence
+ return this.sequence
}
func (this *Cursor) Load() int64 {
- return this.Sequence
+ return this.sequence
}
func (this *Cursor) Store(sequence int64) {
- this.Sequence = sequence
+ this.sequence = sequence
}
diff --git a/writer.go b/writer.go
index 9ba8a73..fa799b1 100644
--- a/writer.go
+++ b/writer.go
@@ -50,5 +50,5 @@
}
func (this *Writer) Commit(sequence int64) {
- this.written.Sequence = sequence
+ this.written.sequence = sequence
}