# Chapter 10 issue

**URL:** <https://forums.kodeco.com/t/chapter-10-issue/41823>\
**Category:** Realm: Building Modern Swift Apps with Realm\
**Created:** [April 21, 2018, 7:46pm UTC](https://forums.kodeco.com/t/chapter-10-issue/41823 "2018-04-21T19:46:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilroykilroy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gilroykilroy/32/100770_2.png) [@gilroykilroy](https://forums.kodeco.com/u/gilroykilroy)\
**Post date:** [April 21, 2018, 7:46pm UTC](https://forums.kodeco.com/t/chapter-10-issue/41823/1 "2018-04-21T19:46:34Z")

</div>

“You lock the bufferLock and create a new local variable bufferToProcess to use in case  
there’s a batch of objects to write to disk.”

There is no “bufferLock”. I assume this was left over from some previous version of this chapter.

---

<div class="post-metadata">

**Author:** ![icanzilb](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/icanzilb/32/109333_2.png) [@icanzilb](https://forums.kodeco.com/u/icanzilb)\
**Post date:** [April 24, 2018, 1:42am UTC](https://forums.kodeco.com/t/chapter-10-issue/41823/2 "2018-04-24T01:42:13Z")

</div>

Precisely, thanks for spotting this. We use to have locks in that code but we cleaned the code and they were redundant 🙂
