mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-28 12:40:16 -05:00
Convert NewBlob() away from using resolvedFutures
Instead, use a backing MemoryStore. This is part of removing Futures.
This commit is contained in:
+1
-9
@@ -1,10 +1,6 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/attic-labs/noms/ref"
|
||||
)
|
||||
import "github.com/attic-labs/noms/ref"
|
||||
|
||||
type String struct {
|
||||
s string
|
||||
@@ -15,10 +11,6 @@ func NewString(s string) String {
|
||||
return String{s, &ref.Ref{}}
|
||||
}
|
||||
|
||||
func (fs String) Blob() (Blob, error) {
|
||||
return NewBlob(bytes.NewBufferString(fs.s))
|
||||
}
|
||||
|
||||
func (fs String) String() string {
|
||||
return fs.s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user