Repository navigation
Commit fcc0b82
committed
fix(adapter): require the __before_compile__/1 callback
`Nebulex.Adapter` listed `__before_compile__/1` as optional, but
`Nebulex.Cache` registers `@before_compile adapter` unconditionally, so an
adapter without it fails to compile any cache that uses it. Drop the
optional marker so the behaviour states the actual requirement and the
compiler reports a missing implementation on the adapter itself.1 parent 3062213 commit fcc0b82
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
| |||
0 commit comments