lang: funcs: txn, util: Fix typos
This commit is contained in:
@@ -539,7 +539,7 @@ func (obj *GraphTxn) commit() error {
|
|||||||
// populate operations before the Commit is run.)
|
// populate operations before the Commit is run.)
|
||||||
func (obj *GraphTxn) Commit() error {
|
func (obj *GraphTxn) Commit() error {
|
||||||
// Lock our internal state mutex first... this prevents other AddVertex
|
// Lock our internal state mutex first... this prevents other AddVertex
|
||||||
// or similar calls from interferring with our work here.
|
// or similar calls from interfering with our work here.
|
||||||
obj.mutex.Lock()
|
obj.mutex.Lock()
|
||||||
defer obj.mutex.Unlock()
|
defer obj.mutex.Unlock()
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ type AferoFs struct {
|
|||||||
func (obj *AferoFs) URI() string {
|
func (obj *AferoFs) URI() string {
|
||||||
if obj.Scheme != "" {
|
if obj.Scheme != "" {
|
||||||
// if obj.Path is not empty and doesn't start with a slash, then
|
// if obj.Path is not empty and doesn't start with a slash, then
|
||||||
// the first chunk will dissappear when being parsed with stdlib
|
// the first chunk will disappear when being parsed with stdlib
|
||||||
return obj.Scheme + "://" + obj.Path
|
return obj.Scheme + "://" + obj.Path
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("%s://"+"/", obj.Name()) // old
|
return fmt.Sprintf("%s://"+"/", obj.Name()) // old
|
||||||
|
|||||||
Reference in New Issue
Block a user