Skip to content

Commit b518eb2

Browse files
committed
chore: fix inconsistent function name in comment
Signed-off-by: jishudashen <jishudashen@foxmail.com>
1 parent 85f10f9 commit b518eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/data/data_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (dm *dataManager) getValidatorForDatatype(ctx context.Context, validator co
186186
return v, err
187187
}
188188

189-
// GetMessageWithData performs a cached lookup of a message with all of the associated data.
189+
// GetMessageWithDataCached performs a cached lookup of a message with all of the associated data.
190190
// - Use this in performance sensitive code, but note mutable fields like the status of the
191191
// message CANNOT be relied upon (due to the caching).
192192
func (dm *dataManager) GetMessageWithDataCached(ctx context.Context, msgID *fftypes.UUID, options ...CacheReadOption) (msg *core.Message, data core.DataArray, foundAllData bool, err error) {
@@ -201,7 +201,7 @@ func (dm *dataManager) GetMessageWithDataCached(ctx context.Context, msgID *ffty
201201
return msg, data, foundAllData, err
202202
}
203203

204-
// GetMessageData looks for all the data attached to the message, including caching.
204+
// GetMessageDataCached looks for all the data attached to the message, including caching.
205205
// It only returns persistence errors.
206206
// For all cases where the data is not found (or the hashes mismatch)
207207
func (dm *dataManager) GetMessageDataCached(ctx context.Context, msg *core.Message, options ...CacheReadOption) (data core.DataArray, foundAll bool, err error) {

0 commit comments

Comments
 (0)