diff --git a/src/dbnode/encoding/encoding_mock.go b/src/dbnode/encoding/encoding_mock.go index 8323d3bcae..9a83239447 100644 --- a/src/dbnode/encoding/encoding_mock.go +++ b/src/dbnode/encoding/encoding_mock.go @@ -1,7 +1,7 @@ // Code generated by MockGen. DO NOT EDIT. // Source: github.com/m3db/m3/src/dbnode/encoding/types.go -// Copyright (c) 2018 Uber Technologies, Inc. +// Copyright (c) 2019 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -1302,10 +1302,10 @@ func (mr *MockOStreamMockRecorder) Discard() *gomock.Call { } // Rawbytes mocks base method -func (m *MockOStream) Rawbytes() (checked.Bytes, int) { +func (m *MockOStream) Rawbytes() ([]byte, int) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Rawbytes") - ret0, _ := ret[0].(checked.Bytes) + ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(int) return ret0, ret1 } diff --git a/src/dbnode/encoding/ostream.go b/src/dbnode/encoding/ostream.go index f32c088c6f..a518ab3d95 100644 --- a/src/dbnode/encoding/ostream.go +++ b/src/dbnode/encoding/ostream.go @@ -31,7 +31,7 @@ const ( // Ostream encapsulates a writable stream. type ostream struct { - // We want to use a checked.Bytes when transfering ownership of the buffer + // We want to use a checked.Bytes when transferring ownership of the buffer // of the ostream. Unfortunately, the accounting overhead of going through // the checked.Bytes for every write is massive. As a result, we store both // the rawBuffer that backs the checked.Bytes AND the checked.Bytes themselves